| Summary: | ClassCastException when calling EntitiyManager.getCriteriaBuilder() | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Missing name <deppdepp> |
| Component: | Eclipselink | Assignee: | Nobody - feel free to take it <nobody> |
| Status: | NEW --- | QA Contact: | |
| Severity: | normal | ||
| Priority: | P2 | CC: | deppdepp, michael.f.obrien, tom.ware |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| URL: | http://wiki.eclipse.org/EclipseLink/Development/JPA_2.0/metamodel_api#DI_42:_20090709:_IdentifiableType.supertype_-_what_do_top-level_types_set_it_to | ||
| Whiteboard: | |||
| Bug Depends on: | 266912 | ||
| Bug Blocks: | |||
|
Description
Missing name
Please post any information you can about the model. If we are unable to recreate, we will have to close this bug. >A MappedSuperclass or Entity (Identifiable Types) cannot inherit from an Embeddable (a Managed Type) It seems that the superclass in the call below also needs to be checked with isIdentifiableType() >MetamodelImpl.initialize():429 - 2.3 trunk Class superclass = aClass.getSuperclass(); // explicitly set the superType to null (just in case it is initialized to a non-null value in a constructor) IdentifiableType<?> identifiableTypeSuperclass = null; if(potentialIdentifiableType.isIdentifiableType() && superclass != ClassConstants.OBJECT) { // Get the Entity or MappedSuperclass // A hierarchy of Entity --> Entity or Entity --> MappedSuperclass will be found > identifiableTypeSuperclass = (IdentifiableType<?>)managedTypes.get(superclass); The above code requires extra exception handling code attached, and should be added to DI 42 http://wiki.eclipse.org/EclipseLink/Development/JPA_2.0/metamodel_api#DI_42:_20090709:_IdentifiableType.supertype_-_what_do_top-level_types_set_it_to The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |