HibernateRelationships |
|
| Your trail: |
Difference between
version 5
and
version 4:
| At line 13 added 2 lines. |
| For our purposes, the Weblog entity is a list of available weblogs. A Weblog object has the following properties an id, a username, a dateCreated, and a blogTitle. Every Entry object has an id, a text, and a timeCreated property. |
| The first thing to do is create some objects to persist. Let's create both a "Weblog" and Entry objects (in the src/dao/**/model directory). |
| At line 16 added 37 lines. |
| [{Java2HtmlPlugin |
|
| package org.appfuse.model; |
|
| public class Weblog extends BaseObject { |
| private Long id; |
| private String username; |
| private Date dateCreated; |
| private Date blogTitle; |
|
|
| /* |
| Generate your getters and setters using your favorite IDE: |
| In Eclipse: |
| Right-click -> Source -> Generate Getters and Setters |
| */ |
| } |
| }] |
|
| [{Java2HtmlPlugin |
|
| package org.appfuse.model; |
|
| public class Entry extends BaseObject { |
| private Long id; |
| private String text; |
| private Date timeCreated; |
|
|
| /* |
| Generate your getters and setters using your favorite IDE: |
| In Eclipse: |
| Right-click -> Source -> Generate Getters and Setters |
| */ |
| } |
| }] |
|
Back to HibernateRelationships,
or to the Page History.
|