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) -

c# - passing input text from view to contoller with FacebookContext using Facebook app -

Calling a C++ function from C# by passing a string with variable size to it -