Mostrar mensagens com a etiqueta NetBeans. Mostrar todas as mensagens
Mostrar mensagens com a etiqueta NetBeans. Mostrar todas as mensagens

16 abril 2015

JBoss Forge - how to use it and extend the functionality


Instalation in Eclipse: Search for "JBoss Tools (Luna)" in Eclipse via:
Help > Eclipse Marketplace...

After instalation open Forge Console and you can create new project with:
[no project] workspace $ new-project --named my-forge-app --topLevelPackage com.example.app

create webapp
[my-forge-app] my-forge-app $ scaffold setup
[my-forge-app] my-forge-app $ persistence setup --provider HIBERNATE --container JBOSS_AS7
[my-forge-app] my-forge-app $ entity --named Person
[my-forge-app] Person.java $ field string --named firstName
[my-forge-app] Person.java $ field string --named lastName
[my-forge-app] Person.java $ field int --named age
[my-forge-app] Person.java $ scaffold from-entity

This will generate the CRUD pages for your model:
scaffold from-entity ~.model.* --scaffoldType faces --overwrite; 

More information in emiliosimoes.blogspot.pt or JBoss Forge tutorial


Instalation in NetBeans

 

22 abril 2013

How to Create a Java EE 6 Application with JSF 2, EJB 3.1, JPA, and NetBeans IDE 6.8

"The architecture of the application is shown in the above diagram, where it is organized into various tiers: Presentation, Business, Data Access and Data, where each has an important role to play and is segregated from one another."

Writed by Christopher Lam in DZone