java - How to get the table name in OrmLite -


The name of a table is either the name of the class that is based on it or that is defined in @ database table ( Tablename = "...") Explain that class.

Is there an easy way to get the name of a table on runtime ? Depending on those cases, I need the names of all the cases when updating the database to trigger the database.

I have already checked but I do not know what the ID is supposed to be.

You can use the method from the DatabaseTableConfig class.

Remove and return the table name to a class.

  test for the public class {public static zero main (string [] args) {string name = databasetableconfiff.txt.txtname (AQUARE); Println (name); // TableA}} @ DatabaseTable (table name = "Table A") class A {}    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -