HHH-12297 - Relations are not loaded when using Fetch Profiles

Rename entities to prevent using DB reserved words
This commit is contained in:
Vlad Mihalcea 2018-02-28 12:35:00 +02:00
parent 01111f7463
commit af6a69645c
1 changed files with 5 additions and 5 deletions

View File

@ -83,7 +83,7 @@ public class EntityLoadedInTwoPhaseLoadTest extends BaseCoreFunctionalTestCase {
}; };
} }
@Entity(name = "Finish") @Entity(name = "FinishEntity")
public static class Finish { public static class Finish {
@Id @Id
@ -117,7 +117,7 @@ public class EntityLoadedInTwoPhaseLoadTest extends BaseCoreFunctionalTestCase {
} }
} }
@Entity(name = "Mid") @Entity(name = "MidEntity")
@FetchProfile(name = FETCH_PROFILE_NAME, fetchOverrides = { @FetchProfile(name = FETCH_PROFILE_NAME, fetchOverrides = {
@FetchProfile.FetchOverride(entity = Mid.class, association = "finish", mode = FetchMode.JOIN) @FetchProfile.FetchOverride(entity = Mid.class, association = "finish", mode = FetchMode.JOIN)
}) })
@ -155,7 +155,7 @@ public class EntityLoadedInTwoPhaseLoadTest extends BaseCoreFunctionalTestCase {
} }
@Entity(name = "Start") @Entity(name = "StartEntity")
@FetchProfile(name = FETCH_PROFILE_NAME, fetchOverrides = { @FetchProfile(name = FETCH_PROFILE_NAME, fetchOverrides = {
@FetchProfile.FetchOverride(entity = Start.class, association = "via1", mode = FetchMode.JOIN), @FetchProfile.FetchOverride(entity = Start.class, association = "via1", mode = FetchMode.JOIN),
@FetchProfile.FetchOverride(entity = Start.class, association = "via2", mode = FetchMode.JOIN) @FetchProfile.FetchOverride(entity = Start.class, association = "via2", mode = FetchMode.JOIN)
@ -206,7 +206,7 @@ public class EntityLoadedInTwoPhaseLoadTest extends BaseCoreFunctionalTestCase {
} }
@Entity(name = "Via1") @Entity(name = "Via1Entity")
@FetchProfile(name = FETCH_PROFILE_NAME, fetchOverrides = { @FetchProfile(name = FETCH_PROFILE_NAME, fetchOverrides = {
@FetchProfile.FetchOverride(entity = Via1.class, association = "mid", mode = FetchMode.JOIN) @FetchProfile.FetchOverride(entity = Via1.class, association = "mid", mode = FetchMode.JOIN)
}) })
@ -244,7 +244,7 @@ public class EntityLoadedInTwoPhaseLoadTest extends BaseCoreFunctionalTestCase {
} }
@Entity(name = "Via2") @Entity(name = "Via2Entity")
@FetchProfile(name = FETCH_PROFILE_NAME, fetchOverrides = { @FetchProfile(name = FETCH_PROFILE_NAME, fetchOverrides = {
@FetchProfile.FetchOverride(entity = Via2.class, association = "mid", mode = FetchMode.JOIN) @FetchProfile.FetchOverride(entity = Via2.class, association = "mid", mode = FetchMode.JOIN)
}) })