We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e84c7d commit 218851eCopy full SHA for 218851e
tooling/metamodel-generator/src/main/java/org/hibernate/jpamodelgen/xml/JpaDescriptorParser.java
@@ -139,6 +139,13 @@ private Persistence getPersistence() {
139
Diagnostic.Kind.WARNING, "Unable to parse persistence.xml: " + e.getMessage()
140
);
141
}
142
+
143
+ try {
144
+ stream.close();
145
+ } catch (IOException e) {
146
+ // eat it
147
+ }
148
149
return persistence;
150
151
@@ -161,6 +168,12 @@ private void loadEntityMappings(Collection<String> mappingFileNames) {
161
168
if ( mapping != null ) {
162
169
entityMappings.add( mapping );
163
170
171
172
173
174
175
176
164
177
165
178
166
179
0 commit comments