public class JpaEntityTransformer extends AbstractJpaTransformer
AbstractJpaXXXEntity: abstract jpa entity for entity named XXX, will find here the generated stuff (with jpa mapping, technical stuff) JpaXXXEntity: concrete public jpa entity to use in your persistence layerNote: All classes found in class-path are not generated.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_CREATE_DATE |
static String |
PROPERTY_VERSION |
DEFAULT_CONSTANT_PREFIXoutputModel, outputProperties, outputTemplate, previousTransformer| Constructor and Description |
|---|
JpaEntityTransformer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addPropertyAnnotations(org.nuiton.eugene.models.object.ObjectModelClass input,
org.nuiton.eugene.models.object.ObjectModelClass output,
org.nuiton.eugene.models.object.ObjectModelAttribute inputProperty,
org.nuiton.eugene.models.object.ObjectModelAttribute property,
boolean generateTechnicalFields) |
protected void |
createAddAllChildrenMethod(org.nuiton.eugene.models.object.ObjectModelClass output,
String attrName,
String attrType,
String constantName,
Class<?> collectionInstanceType,
boolean usePCS) |
protected void |
createAddChildMethod(org.nuiton.eugene.models.object.ObjectModelClass output,
String attrName,
String attrType,
String constantName,
Class<?> collectionInstanceType,
boolean usePCS) |
protected void |
createContainsAllChildrenMethod(org.nuiton.eugene.models.object.ObjectModelClass output,
String attrName,
String attrType,
String constantName,
boolean usePCS) |
protected void |
createContainsChildByIdMethod(org.nuiton.eugene.models.object.ObjectModelClass output,
String attrName,
String attrType,
String constantName,
boolean usePCS) |
protected void |
createContainsChildMethod(org.nuiton.eugene.models.object.ObjectModelClass output,
String attrName,
String attrType,
String constantName,
boolean usePCS) |
protected void |
createGetChildByIdMethod(org.nuiton.eugene.models.object.ObjectModelClass output,
String attrName,
String attrType,
String simpleType) |
protected void |
createGetChildMethod(org.nuiton.eugene.models.object.ObjectModelClass output) |
protected void |
createGetChildMethod(org.nuiton.eugene.models.object.ObjectModelClass output,
String attrName,
String attrType,
String simpleType) |
protected org.nuiton.eugene.models.object.ObjectModelOperation |
createGetMethod(org.nuiton.eugene.models.object.ObjectModelClass output,
String attrName,
String attrType,
String methodPrefix) |
protected void |
createIsEmptyMethod(org.nuiton.eugene.models.object.ObjectModelClass output,
String attrName) |
protected void |
createProperty(org.nuiton.eugene.models.object.ObjectModelClass input,
org.nuiton.eugene.models.object.ObjectModelClass output,
org.nuiton.eugene.models.object.ObjectModelAttribute attr,
boolean usePCS,
boolean geneTechnicalFields) |
protected void |
createPropertyChangeSupport(org.nuiton.eugene.models.object.ObjectModelClass output) |
protected void |
createRemoveAllChildrenMethod(org.nuiton.eugene.models.object.ObjectModelClass output,
String attrName,
String attrType,
String constantName,
boolean usePCS) |
protected void |
createRemoveChildMethod(org.nuiton.eugene.models.object.ObjectModelClass output,
String attrName,
String attrType,
String constantName,
boolean usePCS) |
protected void |
createSetMethod(org.nuiton.eugene.models.object.ObjectModelClass output,
String attrName,
String attrType,
String simpleType,
String constantName,
String getterPrefix,
boolean usePCS) |
protected void |
createSizeMethod(org.nuiton.eugene.models.object.ObjectModelClass output,
String attrName) |
protected org.nuiton.eugene.models.object.ObjectModelClass |
generateAbstract(org.nuiton.eugene.models.object.ObjectModelClass input,
String packageName,
String entityAbstractName) |
protected org.nuiton.eugene.models.object.ObjectModelClass |
generateImpl(org.nuiton.eugene.models.object.ObjectModelClass input,
String packageName,
String entityAbstractName,
String entityConcreteName) |
void |
transformFromClass(org.nuiton.eugene.models.object.ObjectModelClass input) |
addConstructorWithEntityManager, addInterfaces, addSerializable, createPropertyConstant, isEntity, isSuperClassEntityaddAnnotation, addAnnotation, addAnnotationParameter, addAttribute, addAttribute, addAttribute, addAttribute, addBlock, addComment, addConstant, addConstant, addConstantsFromDependency, addConstructor, addConstructor, addException, addException, addGeneratedAnnotation, addI18n, addImport, addImport, addImport, addInnerClassifier, addInterface, addInterface, addLiteral, addOperation, addOperation, addOperation, addParameter, addParameter, addStereotype, addTagValue, addTagValue, cloneAttribute, cloneClass, cloneClassifier, cloneClassifier, cloneEnumeration, cloneInterface, cloneOperation, cloneOperationSignature, cloneStereotypes, cloneTagValues, copyClassifier, createAbstractClass, createClass, createEnumeration, createInterface, debugOutputModel, generateI18nBlock, getConstantName, getConstantPrefix, getConstantPrefix, getFileInClassPath, getJavaBeanMethodName, getJavaBeanMethodName, initConstantPrefixFromModel, initOutputModel, initOutputTemplate, isInClassPath, isInClassPath, isInClassPath, setConstantPrefix, setDocumentation, setMaxMultiplicity, setMinMultiplicity, setNavigable, setOperationBody, setSuperClass, setSuperClasstransform, transformFromClassifier, transformFromElement, transformFromEnumeration, transformFromInterface, transformFromModelapplyTemplate, getDefaultPackageName, getOutputModel, getOutputProperties, getOutputTemplate, init, initPreviousTransformer, transformgetClassLoader, getConfiguration, getEncoding, getExcludeTemplates, getGeneratedPackages, getLastModifiedSource, getModel, getOverwrite, getProperties, getProperty, getProperty, getWriterReport, isOverwrite, isVerbose, setConfiguration, setPropertypublic static final String PROPERTY_VERSION
public static final String PROPERTY_CREATE_DATE
public void transformFromClass(org.nuiton.eugene.models.object.ObjectModelClass input)
transformFromClass in class org.nuiton.eugene.models.object.ObjectModelTransformer<org.nuiton.eugene.models.object.ObjectModel>protected org.nuiton.eugene.models.object.ObjectModelClass generateAbstract(org.nuiton.eugene.models.object.ObjectModelClass input,
String packageName,
String entityAbstractName)
protected org.nuiton.eugene.models.object.ObjectModelClass generateImpl(org.nuiton.eugene.models.object.ObjectModelClass input,
String packageName,
String entityAbstractName,
String entityConcreteName)
protected void addPropertyAnnotations(org.nuiton.eugene.models.object.ObjectModelClass input,
org.nuiton.eugene.models.object.ObjectModelClass output,
org.nuiton.eugene.models.object.ObjectModelAttribute inputProperty,
org.nuiton.eugene.models.object.ObjectModelAttribute property,
boolean generateTechnicalFields)
protected void createProperty(org.nuiton.eugene.models.object.ObjectModelClass input,
org.nuiton.eugene.models.object.ObjectModelClass output,
org.nuiton.eugene.models.object.ObjectModelAttribute attr,
boolean usePCS,
boolean geneTechnicalFields)
protected org.nuiton.eugene.models.object.ObjectModelOperation createGetMethod(org.nuiton.eugene.models.object.ObjectModelClass output,
String attrName,
String attrType,
String methodPrefix)
protected void createGetChildMethod(org.nuiton.eugene.models.object.ObjectModelClass output,
String attrName,
String attrType,
String simpleType)
protected void createGetChildByIdMethod(org.nuiton.eugene.models.object.ObjectModelClass output,
String attrName,
String attrType,
String simpleType)
protected void createIsEmptyMethod(org.nuiton.eugene.models.object.ObjectModelClass output,
String attrName)
protected void createSizeMethod(org.nuiton.eugene.models.object.ObjectModelClass output,
String attrName)
protected void createAddChildMethod(org.nuiton.eugene.models.object.ObjectModelClass output,
String attrName,
String attrType,
String constantName,
Class<?> collectionInstanceType,
boolean usePCS)
protected void createAddAllChildrenMethod(org.nuiton.eugene.models.object.ObjectModelClass output,
String attrName,
String attrType,
String constantName,
Class<?> collectionInstanceType,
boolean usePCS)
protected void createRemoveChildMethod(org.nuiton.eugene.models.object.ObjectModelClass output,
String attrName,
String attrType,
String constantName,
boolean usePCS)
protected void createRemoveAllChildrenMethod(org.nuiton.eugene.models.object.ObjectModelClass output,
String attrName,
String attrType,
String constantName,
boolean usePCS)
protected void createContainsChildMethod(org.nuiton.eugene.models.object.ObjectModelClass output,
String attrName,
String attrType,
String constantName,
boolean usePCS)
protected void createContainsChildByIdMethod(org.nuiton.eugene.models.object.ObjectModelClass output,
String attrName,
String attrType,
String constantName,
boolean usePCS)
protected void createContainsAllChildrenMethod(org.nuiton.eugene.models.object.ObjectModelClass output,
String attrName,
String attrType,
String constantName,
boolean usePCS)
protected void createSetMethod(org.nuiton.eugene.models.object.ObjectModelClass output,
String attrName,
String attrType,
String simpleType,
String constantName,
String getterPrefix,
boolean usePCS)
protected void createGetChildMethod(org.nuiton.eugene.models.object.ObjectModelClass output)
protected void createPropertyChangeSupport(org.nuiton.eugene.models.object.ObjectModelClass output)
Copyright © 2013–2015 CodeLutin. All rights reserved.