From: <no...@at...> - 2006-04-17 14:49:28
|
Problem with PolymorphismType.EXPLICIT -------------------------------------- Key: ANN-314 URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN= -314 Project: Hibernate Annotations Type: Bug Versions: 3.1beta7 =20 Reporter: =C3=81lvaro Queiroz Valente @Entity(access =3D AccessType.FIELD) @org.hibernate.annotations.Entity(polymorphism =3D PolymorphismType.EXPLICI= T) @Table(name =3D "TableA") @Inheritance(strategy =3D InheritanceType.TABLE_PER_CLASS) public class ObjectA{ @Entity(access =3D AccessType.FIELD) @Table(name =3D "TableB") public class ObjectB extends ObjectA{=20 When we call ObjectA ("findByKey") the Hibernate always use select union wi= th TableB, but the expect is select only TableA , because we use polymorphi= sm =3D PolymorphismType.EXPLICIT. --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators= .jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |