JBoss.orgCommunity Documentation
Outlined in this chapter are the commands you will use most often when developing projects with the Forge runtime.
The command new-project
allows you to create a new project and have it automatically imported into your workspace.
The format of the command is:
new-project --named example --topLevelPackage com.example
Once the command has been executed, the new project will appear in your Project Explorer.
Persistence can be added to a project through the use of the command persistence setup
.
The format of the command is:
persistence setup --provider HIBERNATE --container JBOSS_AS6
Once the command has been executed a new file will have been created called persistence.xml
. The file will appear under your project in the Project Explorer, and will automatically open in an editor.
A new entity can be created for a project by using the command entity
.
The format of the command is:
entity --named Customer
Once the command has been executed a new entity will have been created. The entity will appear under your project's domain in the Project Explorer, and the Java file will automatically open in an editor.
A new field can be created for an entity by using the command field string
.
The format of the command is:
field string --named firstName
Once the command has been executed a new field will have been created in the selected entity. The field will appear in the Java editor and in the Outline view.