I annotated a bunch of POJOs, so JPA can use them to create tables in Hibernate. It appears that all the tables are created, with the exception of one central table called the "Revision". The Revision class has the @Entity(name="RevisionT") annotation @Entity(name="RevisionT") , so it will be renamed to RevisionT, so there will be no conflict with any reserved words in MySQL (the target database).
I delete the entire database, recreate it and basically open and close the JPA session. It seems that all tables are recreated without problems.
Why will there be no single table in the created schema? What hardware can I use to view what Hibernate produces and what errors?
Thanks.
UPDATE: I tried to create a DB DB Derby and was successful. However, one of the fields has the name "index". I use @org.hibernate.annotations.IndexColumn to specify a name for something other than a reserved word. However, a column is always called an “index” when it is created.
Here is an example of suspicious annotations.
@ManyToOne @JoinColumn(name="MasterTopID") @IndexColumn(name="Cx3tHApe") protected MasterTop masterTop;
Instead of creating MasterTop.Cx3tHApe , MasterTop.Index is created as a field. Why is the name ignored?
User1 source share