On Aug 20, 2008, at 9:15 AM, Marcin Kwapisz wrote:
Hi,
I tried to reproduce the problem with Hibernate and OpenEJB.
The previous message in the log file was:
org.apache.openejb.OpenEJBException: createApplication.failed
[D:\JavaProg\MySamples\EJB\Sample5\JEEMavenProject2\EjbServiceCore
\targ
et\classes]: null
Now I get:
org.apache.openejb.OpenEJBException: createApplication.failed [D:
\JavaProg\MySamples\EJB\OLD\JEEMavenProject2\EjbServiceCore\target
\classes]: org.hibernate.AssertionFailure: Table PERSONENT not
found: Table PERSONENT not found
In that case the problem is with annotation processing and database
schema creation:
@Entity
@Table(name="ACCOUTENT")
@Inheritance(strategy=InheritanceType.JOINED)
@DiscriminatorColumn(name="typ",
discriminatorType=DiscriminatorType.STRING)
@SecondaryTable
(name="PERSONENT",[EMAIL PROTECTED](name= "ID")})
public class PersonAccountEnt implements Serializable
I found that inheritance JOINED and SecondaryTable does not work
with Hibernate. So the problem is not with OpenEJB (I think).
I don’t know why I get "null" in original project. Can it be the
same problem or a different one?
Not sure, but the lack of tables seems to indicate that the magic
hibernate "create tables" property isn't set. If you can post your
hibernate persistence.xml and the OpenEJB log output that'd be great.
Also, we have an OpenEJB, Maven, Hibernate example here that may
help. http://svn.apache.org/repos/asf/openejb/trunk/openejb3/examples/jpa-hibernate/
-David