 #  Product entity
 #  ############
 jpa-new-entity --named Product ;
-jpa-new-field --named name --length 30 ;
-jpa-new-field --named description --length 3000 ;
+jpa-new-field --named name --length 30 --not-nullable ;
+jpa-new-field --named description --length 3000 --not-nullable ;
 # Relationships
 jpa-new-field --named category --type org.jboss.forge.hol.petstore.model.Category --relationshipType Many-to-One ;
 # Constraints

#  Customer entity
#  ############
jpa-new-entity --named Customer ;
jpa-new-field --named login --length 10 ;
jpa-new-field --named password --length 256 ;
jpa-new-field --named firstName --length 50 --columnName first_name ;
jpa-new-field --named lastName --length 50 --columnName last_name ;
jpa-new-field --named telephone ;
jpa-new-field --named email ;
jpa-new-field --named dateOfBirth --type java.util.Date --temporalType DATE --columnName date_of_birth ;

#  Category entity
#  ############
jpa-new-entity  --named Category ;
jpa-new-field --named name --length 30 --not-nullable ;
jpa-new-field --named description --length 3000 --not-nullable ;
# Constraints
constraint-add --onProperty name --constraint NotNull ;
constraint-add --onProperty name --constraint Size --min 1 --max 30 ;
