 #  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

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

#  Item entity
#  ############
jpa-new-entity --named Item ;
jpa-new-field --named name --length 30 --not-nullable ;
jpa-new-field --named description --length 3000 --not-nullable ;
jpa-new-field --named imagePath --columnName image_path ;
jpa-new-field --named unitCost --type java.lang.Float --columnName unit_cost ;
# Relationships
