Community
Participate
Working Groups
Build Identifier: 20100917-0705 When specifying the targetEntity attribute for a relationship mapping, it's necessary to verify the type of the given target entity to check whether or not it's compatible with the type of the mapped property. There are four cases: 1. For one-to-one and many-to-one mapping, type incompatibility should be reported. 2. For one-to-many and many-to-many mapping, no validation error should be reported without using generics. 3. For one-to-many and many-to-many mapping, type incompatibility should be reported with using generics. 4. When the given target entity is a subclass of the type of the mapped property, no validation error should be reported. Type incompatibility may not lead to deployment error, but could result in broken program. Reproducible: Always
Moving JPA specific bugs to new JPA component in bugzilla.