com.j256.ormlite.misc
Class JavaxPersistence
java.lang.Object
com.j256.ormlite.misc.JavaxPersistence
public class JavaxPersistence
- extends Object
Class for isolating the detection of the javax.persistence annotations. This used to be a hard dependency but it has
become optinal/test since we use reflection here.
- Author:
- graywatson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaxPersistence
public JavaxPersistence()
createFieldConfig
public static DatabaseFieldConfig createFieldConfig(DatabaseType databaseType,
Field field)
throws SQLException
- Create a field config from the javax.persistence annotations associated with the field argument. Returns null if
none.
- Throws:
SQLException
getEntityName
public static String getEntityName(Class<?> clazz)
- Return the javax.persistence.Entity annotation name for the class argument or null if none or if there was no
entity name.
This content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.