This tool generates a standard GUI for editing objects wich are persisted by your hibernate domain model. You can edit simple attributes as well as relationships.
With some extra effort you can replace standard controls or whole views with your own and make your GUI more comfortable.
GenericRCP Project Page
A rich client based on SpringRCP, wich generates the gui automatically by using a hibernate domain model (with .hbm.xml-file or annotations).
The domain model must be jared and can be loaded in the application at runtime from local file system or referenced by url.
Based on the domain model you can edit simple attributes e.g. Strings as well as relationships like one-to-many and many-to-many.
Now you should see your jar file and the package structur as tree.
If you click on a class, all objects of this type will be loaded and shown in the table on the right side.
CRUD Funktions
Insert: With the insert button or by double click on a class in the tree a dialog appears for inserting an new object
Edit: With the edit button or by double click on a row in the table a dialog appears for editing an object
Delete: Select a row an click delete for deleting the object
Reload: With reload all objects will be loaded from DB and shown in the table
RichTable
With a right click on the table you get an popup menu
In the columns menu you can remove/add columns of the table
In the settings menu you can save or load current table settings like column order and width
Domain Jar Import
Execute "import DomainJar..." in the menu or in the toolbar to open the import wizard.
Select a "Domain Jar" with the filecooser or paste the path in the textfield.
The "Ui Jar" is optional an will be explained in chapter "Customizing"
In "Persistence Manager" select HibernateHbmXml or HibernateAnnotations
Fill the next page with informations about the DB connection
After clicking "import" you will be asked if you want to create the DB-schema. Click Yes if it dosen`t exists.
After a successfull import you can see your jar in the tree on the left side
For customizing the UI with custom bindings, renderer or icons see chapter "Customizing".
If you're using appfuse you can direcly import the dao.jar into the GUI and test it.
External Libraries
If your domain model needs thrid party JARs you can add them into the "extlib" folder.
If you're using the "ToStringBuilder" from "commons-lang.jar" for example you have to add this jar.