« Return to Thread: NullPointerException in 0.6

NullPointerException in 0.6

by petar :: Rate this Message:

Reply to Author | View in Thread

Hi!

@javax.persistence.Table is not required for entities (default is class name)

but you assume this in DbMappings.getMappings:

Table t = (Table) cls.getAnnotation(Table.class);
mappings.tableName = t.name();

The same is true for Column:
Column c = (Column) f.getAnnotation(Column.class);
mappings.idField = c.name();

Regards,
Peter.

 « Return to Thread: NullPointerException in 0.6