Please use the google group to ask questions - thanks.

by cmendis 31 Oct 21:31
Multiple levels of MappedSuperClass

Is there a limit to the levels of MappedSuperClasses supported in Ebean? I have a hierarchy that looks like follows:
EntityBean (mapped super-class that has ID, timestamp etc.)
Requirement (mapped super-class that has additional properties for a requirement)
UseCase (a concrete entity)

So far so good. I simply split UseCase into UseCaseBase, another mapped super-class, and UseCase, a dummy entity class that extends UseCaseBase - and ebean throws a nullPointerException when trying to initialize.
com.avaje.ebeaninternal.server.deploy.BeanDescriptorManager deploy
SEVERE: Error in deployment
java.lang.NullPointerException
at com.avaje.ebeaninternal.server.deploy.meta.DeployBeanPropertyAssoc.setBeanTable(DeployBeanPropertyAssoc.java:145)
at com.avaje.ebeaninternal.server.deploy.BeanDescriptorManager.makeUnidirectional(BeanDescriptorManager.java:850)
at com.avaje.ebeaninternal.server.deploy.BeanDescriptorManager.checkMappedByOneToMany(BeanDescriptorManager.java:918)
at com.avaje.ebeaninternal.server.deploy.BeanDescriptorManager.checkMappedBy(BeanDescriptorManager.java:712)
at com.avaje.ebeaninternal.server.deploy.BeanDescriptorManager.readEntityRelationships(BeanDescriptorManager.java:643)
at com.avaje.ebeaninternal.server.deploy.BeanDescriptorManager.deploy(BeanDescriptorManager.java:275)
at com.avaje.ebeaninternal.server.core.InternalConfiguration.(InternalConfiguration.java:143)
at com.avaje.ebeaninternal.server.core.DefaultServerFactory.createServer(DefaultServerFactory.java:209)

Create a New Topic

Title:
Body:
 
Introduction User Guide (pdf) Install/Configure Public JavaDoc Whitepapers
General Database Specific Byte Code Deployment Annotations Features
Top Bugs Top Enhancements
woResponse