This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<plugin> | |
<groupId>com.dooapp</groupId> | |
<artifactId>spoon-maven-plugin</artifactId> | |
<version>1.1</version> | |
<dependencies> | |
<dependency> | |
<groupId>com.dooapp</groupId> | |
<artifactId>fx-spoon</artifactId> | |
<version>2.0-SNAPSHOT</version> | |
</dependency> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>AProject</groupId> | |
<artifactId>AProject</artifactId> | |
<version>1.0-SNAPSHOT</version> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Project{ | |
private final StringProperty name=new SimpleStringProperty(); | |
} | |
public class Sample{ | |
private final StringProperty name=new SimpleStringProperty(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>DSDK-entity</groupId> | |
<artifactId>DSDK-entity</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<dependencies> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.dooapp.template.property; | |
import javafx.beans.property.ObjectProperty; | |
import spoon.reflect.reference.CtTypeReference; | |
import spoon.template.Local; | |
import spoon.template.Parameter; | |
import spoon.template.Template; | |
/** | |
* Main template to handle all getter setter updater and properties into wrappers<br> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[INFO] Running spoon with parameters : | |
[INFO] [-i, /Users/christophedufour/workspace/test-model/src/main/java, -o, /Users/christophedufour/workspace/test-model/target/generated-sources/spoon, --compliance, 6, -p, com.dooapp.processor.wrapper.GenerateMissingWrapperClassProcessor:com.dooapp.processor.wrapper.AddSuperClassOnBeanProcessor:com.dooapp.processor.wrapper.AddSuperClassOnWrapperProcessor:com.dooapp.processor.property.GenerateWrapperMethodsProcessor:com.dooapp.processor.property.GenerateCreateFieldPropertyContent:com.dooapp.processor.collection.GenerateWrapperCollectionMethodsProcessor:com.dooapp.processor.builder.GenerateMissingBuilderClassProcessor:com.dooapp.processor.builder.AddSuperClassOnBuilderProcessor:com.dooapp.processor.builder.GenerateMethodsProcessor, -t, /var/folders/vh/gt6kjhmn2rd9_pnm_gnlrnlr0000gn/T/Spoon2395517295073850970/com/dooapp/template/WrapperConstructorTemplate.java:/var/folders/vh/gt6kjhmn2rd9_pnm_gnlrnlr0000gn/T/Spoon2395517295073850970/com/dooapp/template/property/ReadTempl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.dooapp.template.builder; | |
import spoon.template.Local; | |
import spoon.template.Parameter; | |
import spoon.template.Template; | |
public class DefaultConstantTemplate implements Template { | |
@Parameter() | |
static String _name_; | |
@Parameter("_NAME_") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.dooapp.template.builder; | |
import spoon.template.Local; | |
import spoon.template.Parameter; | |
import spoon.template.Template; | |
public class DefaultConstantTemplate implements Template { | |
public static final String DEFAULT__NAME__VALUE = "defaultValue._name_"; | |
@Parameter("_name_") | |
String __name_; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Entity | |
public class Person{ | |
@OneToMany(Fetch=FetchType.EAGER) | |
private List<Child> person; | |
} | |
db.selectFrom(PERSON);//select * from Person, Child WHERE Person.id=Child.Person.Id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Table(name="FOO") | |
public class Bar{ | |
@Column(name="MY_CUSTOM_NAME") | |
private String name; | |
} | |
/* | |
Table structure : | |
-------------------- | |
| FOO | |
NewerOlder