 # CreditCard embeddable
 # ############
 jpa-new-embeddable --named CreditCard ;
-jpa-new-field --named creditCardNumber --columnName credit_card_number --length 30 ;
+jpa-new-field --named creditCardNumber --columnName credit_card_number --length 30 --not-nullable ;
 jpa-new-field --named creditCardType --type org.jboss.forge.hol.petstore.model.CreditCardType --columnName credit_card_type ;
-jpa-new-field --named creditCardExpDate --columnName credit_card_expiry_date --length 5 ;
+jpa-new-field --named creditCardExpDate --columnName credit_card_expiry_date --length 5 --not-nullable ;
 # Constraints
 constraint-add --onProperty creditCardNumber --constraint NotNull ;
 constraint-add --onProperty creditCardNumber --constraint Size --min 1 --max 30 ;

#  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 ;

#  OrderLine entity
#  ############
jpa-new-entity --named OrderLine --tableName order_line ;
jpa-new-field --named quantity --type java.lang.Integer --not-nullable ;
# Relationships
jpa-new-field --named item --type org.jboss.forge.hol.petstore.model.Item --relationshipType Many-to-One ;
# Constraints
constraint-add --onProperty quantity --constraint Min --value 1 ;


#  PurchaseOrder entity
