Here is what I got.the Table
annotation set the table name to cbhistory_article
, but the ormlite's TableInfo
get the table name is article
.
How can I get the right thing ?
In com.j256.ormlite.table.DatabaseTableConfig#extractTableName
will find out, com.j256.ormlite.misc.JavaxPersistence#getEntityName
only get the entity name rather than table name. But why ?
According to this, I think consider use the Table
name is better or both of Table
and Entity
name.