HibernateRelationships |
|
Your trail: |
Difference between
version 100
and
version 99:
At line 9 changed 1 line. |
* [1] Create Weblog.java, Entry.java and add XDoclet tags |
* [1] Create Weblog.java, Entry.java and Category.java domain objects |
At line 34 changed 1 line. |
The first thing you need to do in this tutorial is these two object to persist. Create both a ''Weblog.java'' class and an ''Entry.java'' class (in the src/dao/**/model directory). The necessary XDoclet tags for these entities is included on the ''getter'' method's javadoc. You can download these files using the links below. Note that javadocs have been eliminated for brevity. |
The first thing you need to do in this tutorial is these two object to persist. Create a __Weblog.java__ class and an __Entry.java__ class (in the src/dao/**/model directory). The necessary XDoclet tags for these entities is included on the ''getter'' method's javadoc. You can download these files using the links below. Note that javadocs have been eliminated for brevity. |
At line 41 changed 1 line. |
!![[Many-to-One] Create a new Category object and modify Entry.java to use it [#2] |
Create a __Category.java__ object to act as an entity for persisting category information about weblog entries. Each category can have many entries. This class contains the following properties: |
At line 43 removed 2 lines. |
A category object will act as an entity for persisting category information about weblog entries. Each category can have many entries. This class contains the following properties: |
|
At line 53 changed 1 line. |
Add the 3 new mapping files to the "sessionFactory" bean's ''mappingResources'' property in __src/org/appfuse/dao/hibernate/applicationContext-hibernate.xml__. |
Add the 3 new mapping files (that will be generated) to the "sessionFactory" bean's ''mappingResources'' property in __src/org/appfuse/dao/hibernate/applicationContext-hibernate.xml__. |
Back to HibernateRelationships,
or to the Page History.
|