 java-new-class --named NumberProducer --targetPackage org.jboss.forge.hol.petstore.util ;
 
 java-new-field --named vatRate --type java.lang.Float --generateGetter=false --generateSetter=false --updateToString=false ;
-java-add-annotation --annotation javax.enterprise.inject.Produces --onProperty vat ;
-java-add-annotation --annotation org.jboss.forge.hol.petstore.util.Vat --onProperty vat ;
-java-add-annotation --annotation javax.inject.Named --onProperty vat ;
+java-add-annotation --annotation javax.enterprise.inject.Produces --onProperty vatRate ;
+java-add-annotation --annotation org.jboss.forge.hol.petstore.util.Vat --onProperty vatRate ;
+java-add-annotation --annotation javax.inject.Named --onProperty vatRate ;
 
 java-new-field --named discountRate --type java.lang.Float --generateGetter=false --generateSetter=false --updateToString=false ;
 java-add-annotation --annotation javax.enterprise.inject.Produces --onProperty discountRate ;

rest-generate-endpoints-from-entities --targets org.jboss.forge.hol.petstore.model.Category --contentType application/xml application/json ;
rest-generate-endpoints-from-entities --targets org.jboss.forge.hol.petstore.model.Product --contentType application/xml application/json ;
rest-generate-endpoints-from-entities --targets org.jboss.forge.hol.petstore.model.Item --contentType application/xml application/json ;



#  #########################  #
#  Generate Arquillian tests
#  #########################  #

# JSF Beacking Beans
# ##################
arquillian-create-test --targets org.jboss.forge.hol.petstore.view.CountryBean ;
arquillian-create-test --targets org.jboss.forge.hol.petstore.view.CustomerBean ;
arquillian-create-test --targets org.jboss.forge.hol.petstore.view.CategoryBean ;
arquillian-create-test --targets org.jboss.forge.hol.petstore.view.ProductBean ;
arquillian-create-test --targets org.jboss.forge.hol.petstore.view.ItemBean ;
arquillian-create-test --targets org.jboss.forge.hol.petstore.view.OrderLineBean ;
arquillian-create-test --targets org.jboss.forge.hol.petstore.view.PurchaseOrderBean ;

# REST Endpoints
# ##############
arquillian-create-test --targets org.jboss.forge.hol.petstore.rest.CountryEndpoint ;
arquillian-create-test --targets org.jboss.forge.hol.petstore.rest.CustomerEndpoint ;
arquillian-create-test --targets org.jboss.forge.hol.petstore.rest.CategoryEndpoint ;
arquillian-create-test --targets org.jboss.forge.hol.petstore.rest.ProductEndpoint ;
arquillian-create-test --targets org.jboss.forge.hol.petstore.rest.ItemEndpoint ;

# Services
# ##############
arquillian-create-test --targets org.jboss.forge.hol.petstore.service.CountryService ;
arquillian-create-test --targets org.jboss.forge.hol.petstore.service.CustomerService ;
arquillian-create-test --targets org.jboss.forge.hol.petstore.service.CategoryService ;
arquillian-create-test --targets org.jboss.forge.hol.petstore.service.ProductService ;
arquillian-create-test --targets org.jboss.forge.hol.petstore.service.ItemService ;
arquillian-create-test --targets org.jboss.forge.hol.petstore.service.PurchaseOrderService ;
arquillian-create-test --targets org.jboss.forge.hol.petstore.service.OrderLineService ;




# java-add-annotation --annotation javax.enterprise.context.ConversationScoped ;

java-new-class --named ShoppingCartItem --targetPackage org.jboss.forge.hol.petstore.view.shopping ;
java-new-field --named item --type org.jboss.forge.hol.petstore.model.Item ;
java-new-field --named quantity --type java.lang.Integer ;
# Constraints
constraint-add --constraint NotNull --onProperty item ;
constraint-add --constraint NotNull --onProperty quantity ;
constraint-add --constraint Min --onProperty quantity --value 1 ;

