template.conf.sit_javaee6.java-embeddedId.vm Maven / Gradle / Ivy
#parse("/java-class.vm")
package $embeddedId.pkg;
import java.io.Serializable;
import javax.persistence.*;
import javax.validation.constraints.*;
import javax.validation.Valid;
#import($embeddedId)
/**
* このクラスは、$embeddedId.nameエンティティのIDを表します。
* @author
*/
@Embeddable
public class $embeddedId.pname implements Serializable {
#foreach ($field in $embeddedId.ids)
#field($field "jpa")
#end
public ${embeddedId.pname}() {
super();
}
public ${embeddedId.pname}(#foreach($field in $embeddedId.ids)#if($velocityCount > 1), #end$field.type $field.pname#end) {
super();
#foreach($field in $embeddedId.ids)
this.$field.pname = $field.pname;
#end
}
#foreach ($field in $embeddedId.ids)
#accessor($field)
#end
#equals($embeddedId)
#hashcode($embeddedId)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy