Hi everybody,
I want to create classes into a package not the default package created automaticly by the generation of the codebut i don't no how to create the package this my Root.xpt:(template)
«DEFINE Root FOR data::DataModel»
«EXPAND Entity FOREACH entity»
«ENDDEFINE»
«DEFINE Entity FOR data::Entity»
«FILE name + ".java"»
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import javax.persistence.OneToMany;
@Entity
public class «name» implements Serializable{
@Id
«FOREACH attribute AS a»
private «a.type» «a.name»;........................................................
i tried to do this but it does not create me a package but it create a folder:
«DEFINE Entity FOR data::Entity»
«FILE "packageEntity/"+name.toFirstUpper() + ".java"»
package packageEntity;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Id;...................................
what i have to do thank you so much!!!