public class RegisterClass extends Object
Entity
or within the META-INF/persistence.xml or JPA configs,
then one does not explicitly need to register these.OEntityManager.registerEntityClass(Class, boolean)
Constructor and Description |
---|
RegisterClass() |
RegisterClass(Class<?> type)
Register class with
recursive as false by default |
RegisterClass(Class<?> type,
boolean recursive) |
Modifier and Type | Method and Description |
---|---|
void |
deregister(com.orientechnologies.orient.core.entity.OEntityManager em) |
Class<?> |
getType() |
boolean |
isRecursive() |
void |
register(com.orientechnologies.orient.core.entity.OEntityManager em) |
void |
setRecursive(boolean recursive) |
void |
setType(Class<?> type) |
public RegisterClass()
public RegisterClass(Class<?> type)
recursive
as false by defaulttype
- as Classpublic RegisterClass(Class<?> type, boolean recursive)
classesToRegister
- recursively
- - false
by defaultpublic void register(com.orientechnologies.orient.core.entity.OEntityManager em)
public void deregister(com.orientechnologies.orient.core.entity.OEntityManager em)
public Class<?> getType()
public void setType(Class<?> type)
type
- the type to setpublic boolean isRecursive()
public void setRecursive(boolean recursive)
recursive
- the recursive to setCopyright © 2018. All rights reserved.