I am working with Hibernate 3.5.5
and HSQLDB 2.2.9
. I use JPA semantics to define Entities and have around 10 entities.
For some unknown reason, the HSQLDB doesn't seem to be picking three entities as I don't find the corresponding tables in the HSQLDB explorer and any reference to those tables result in SQL exception user lacks privilege or object not found: <TableName>
.
All the three entities are in the same format as the other ones and as follows:
@Entity
@Table(name = "<TABLE_NAME>")
public class TableName
{
// private members;
// protected default constructor for the ORM
@Id
@Column(name = <PRIMARY_KEY>)
// public getter for Primary Key member.
@Column(name = <COLUMN_NAME>)
// public getters for all other members;
// protected setters
}
Did anyone face a similar issue where HSQLDB is skipping some entities?
At least, it is consistently skipping the same three entities and I am not able to figure out what is different in those from the rest. All these entities are generated using the JPA facet in Eclipse so there is no difference as such among these.
Edit 1:
My persistence.xml simply has this:
<persistence-unit name="fssPersistenceUnit" transaction-type="RESOURCE_LOCAL">
</persistence-unit>
and HSQLDB 2.0 used to pick all the entities annotated with @Entity
, whereas HSQLDB 2.2.9 doesn't pick all and leaves three entities as mentioned earlier.
Edit 2: After enabling the logging of SQL statements, I see that the CREATE TABLE statements for these three tables are rolled back. I am not able to get any further information on what was wrong with these create table statements. Also, the CREATE TABLE statement is truncated when printed.