16
16
import javax .persistence .ManyToOne ;
17
17
import javax .persistence .OneToOne ;
18
18
import javax .persistence .Subgraph ;
19
+ import javax .persistence .Table ;
19
20
import javax .persistence .Temporal ;
20
21
import javax .persistence .TemporalType ;
21
22
import javax .persistence .TypedQuery ;
23
+
22
24
import java .util .Date ;
23
25
import java .util .List ;
24
26
25
27
import org .hibernate .Hibernate ;
26
28
import org .hibernate .jpa .test .BaseEntityManagerFunctionalTestCase ;
27
29
import org .hibernate .testing .TestForIssue ;
28
-
29
30
import org .junit .Test ;
30
31
31
32
import static org .junit .Assert .assertTrue ;
@@ -184,6 +185,7 @@ public void fetchUsingHql() {
184
185
}
185
186
186
187
@ Entity
188
+ @ Table (name = "customerOrder" )
187
189
public static class CustomerOrder {
188
190
@ Id
189
191
@ GeneratedValue
@@ -200,6 +202,7 @@ public static class CustomerOrder {
200
202
}
201
203
202
204
@ Entity
205
+ @ Table (name = "address" )
203
206
public static class Address {
204
207
@ Id
205
208
@ GeneratedValue
@@ -209,6 +212,7 @@ public static class Address {
209
212
}
210
213
211
214
@ Entity
215
+ @ Table (name = "orderPosition" )
212
216
public static class OrderPosition {
213
217
@ Id
214
218
@ GeneratedValue
@@ -222,6 +226,7 @@ public static class OrderPosition {
222
226
}
223
227
224
228
@ Entity
229
+ @ Table (name = "product" )
225
230
public static class Product {
226
231
@ Id
227
232
@ GeneratedValue
0 commit comments