You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Powerful plugin that will rename the generated model, mappers and examples by moving them in a sub-package and/or append a suffix. This is intended to keep generated code apart from the final classes to allow the geneator plugin to overwrite them every time.
35
15
36
16
e.g.: some.package.Actor will now be generated as some.package.sub.ActorSuffix and will be abstract.
37
17
some.package.ActorMapper will now be generated as some.package.sub.ActorMapperSuffix but methods will still expect and object of type some.package.Actor (to be created manually).
38
18
39
-
-**modelSubPackage**: The sub package to create for model classes.
40
-
-**modelClassSuffix**: The suffix to add to model classes.
41
-
-**mapperSubPackage**: The sub package to create for mapper interfaces.
42
-
-**mapperClassSuffix**: The suffix to add to mapper interfaces.
43
-
-**exampleSubPackage**: The sub package to create for example classes.
44
-
-**exampleClassSuffix**: The suffix to add to example classes.
19
+
There are 6 optional parameters to set:
20
+
-*modelSubPackage*: The sub package to create for model classes.
21
+
-*modelClassSuffix*: The suffix to add to model classes.
22
+
-*mapperSubPackage*: The sub package to create for mapper interfaces.
23
+
-*mapperClassSuffix*: The suffix to add to mapper interfaces.
24
+
-*exampleSubPackage*: The sub package to create for example classes.
25
+
-*exampleClassSuffix*: The suffix to add to example classes.
45
26
46
27
e.g.:
47
28
```xml
@@ -56,8 +37,7 @@ e.g.:
56
37
57
38
## RenameExampleClassAndMethodsPlugin
58
39
59
-
Plugin that will rename the example classes and parameters to give them a more suitable name for a production environment. Also this plugin will fix the update statements and remove the id column(s).
60
-
40
+
Plugin that will rename the example classes and parameters to give them a more suitable name for a production environment. Also this plugin will fix the update statements and remove the id column(s). There are 4 mandatory parameters to set:
61
41
-**classMethodSearchString**: The string to search in class names.
62
42
-**classMethodReplaceString**: The replace value.
63
43
-**parameterSearchString**: The string to search for parameter names.
@@ -73,6 +53,55 @@ e.g.:
73
53
</plugin>
74
54
```
75
55
56
+
## AddClassAnnotationsPlugin
57
+
58
+
Plugin that will add the specified annotation to every generated class. There are 2 mandatory parameters to set:
59
+
-**annotationClass**: The class of the annotation, this will be added as an import statement.
60
+
-**annotationString**: The literal string that will be added, complete will all values
61
+
62
+
If you need to add multiple annotations, configure this plugin many times, one per annotation to add.
Plugin that can be used to make a generated class wrap another java bean. For each property to wrap, the field will not be generated and the getter/setter will simply redirect to the wrapped java bean methods instead. This strategy can be used when you need to persist some third party objects but still want the flexibility to add new properties (like a database id). This pattern is more flexible than trying to extend the class. There are 2 mandatory and 3 optional parameters to set:
79
+
-**fullyQualifiedTableName**: The name of the database table including the schema.
80
+
-**objectClass**: The class of the object to be wrapped.
81
+
-*objectFieldName*: The name of the field to add, will default to the class name starting with a lower case.
82
+
-*includes*: A coma separated list of fields to delegate to the wrapped object, everything else will be excluded. If left blank all fields are included.
83
+
-*excludes*: A coma separated list of fields to exclude.
84
+
85
+
The plugin need to be added for each table as needed.
0 commit comments