Commit 1e6de13d875d2997105db119b5036f009b3cb097
Exists in
master
Merge branch 'master' of git@github.com:demoiselle/framework.git
Showing
1 changed file
with
44 additions
and
44 deletions
Show diff stats
documentation/quickstart/pt-BR/criacao.xml
| @@ -195,51 +195,51 @@ | @@ -195,51 +195,51 @@ | ||
| 195 | <![CDATA[@Entity | 195 | <![CDATA[@Entity |
| 196 | public class Bookmark implements Serializable { | 196 | public class Bookmark implements Serializable { |
| 197 | 197 | ||
| 198 | -private static final long serialVersionUID = 1L; | ||
| 199 | - | ||
| 200 | -/* If you are using Glassfish then remove the strategy attribute */ | ||
| 201 | -@Id | ||
| 202 | -@GeneratedValue(strategy = SEQUENCE) | ||
| 203 | -private Long id; | ||
| 204 | - | ||
| 205 | -@Column | ||
| 206 | -private String description; | ||
| 207 | - | ||
| 208 | -@Column | ||
| 209 | -private String link; | ||
| 210 | - | ||
| 211 | -public Bookmark() { | ||
| 212 | - super(); | ||
| 213 | -} | ||
| 214 | - | ||
| 215 | -public Bookmark(String description, String link) { | ||
| 216 | - this.description = description; | ||
| 217 | - this.link = link; | ||
| 218 | -} | ||
| 219 | - | ||
| 220 | -public Long getId() { | ||
| 221 | - return id; | ||
| 222 | -} | ||
| 223 | - | ||
| 224 | -public void setId(Long id) { | ||
| 225 | - this.id = id; | ||
| 226 | -} | ||
| 227 | - | ||
| 228 | -public String getDescription() { | ||
| 229 | - return description; | ||
| 230 | -} | ||
| 231 | - | ||
| 232 | -public void setDescription(String description) { | ||
| 233 | - this.description = description; | ||
| 234 | -} | 198 | + private static final long serialVersionUID = 1L; |
| 235 | 199 | ||
| 236 | -public String getLink() { | ||
| 237 | - return link; | ||
| 238 | -} | ||
| 239 | - | ||
| 240 | -public void setLink(String link) { | ||
| 241 | - this.link = link; | ||
| 242 | -} | 200 | + /* If you are using Glassfish then remove the strategy attribute */ |
| 201 | + @Id | ||
| 202 | + @GeneratedValue(strategy = SEQUENCE) | ||
| 203 | + private Long id; | ||
| 204 | + | ||
| 205 | + @Column | ||
| 206 | + private String description; | ||
| 207 | + | ||
| 208 | + @Column | ||
| 209 | + private String link; | ||
| 210 | + | ||
| 211 | + public Bookmark() { | ||
| 212 | + super(); | ||
| 213 | + } | ||
| 214 | + | ||
| 215 | + public Bookmark(String description, String link) { | ||
| 216 | + this.description = description; | ||
| 217 | + this.link = link; | ||
| 218 | + } | ||
| 219 | + | ||
| 220 | + public Long getId() { | ||
| 221 | + return id; | ||
| 222 | + } | ||
| 223 | + | ||
| 224 | + public void setId(Long id) { | ||
| 225 | + this.id = id; | ||
| 226 | + } | ||
| 227 | + | ||
| 228 | + public String getDescription() { | ||
| 229 | + return description; | ||
| 230 | + } | ||
| 231 | + | ||
| 232 | + public void setDescription(String description) { | ||
| 233 | + this.description = description; | ||
| 234 | + } | ||
| 235 | + | ||
| 236 | + public String getLink() { | ||
| 237 | + return link; | ||
| 238 | + } | ||
| 239 | + | ||
| 240 | + public void setLink(String link) { | ||
| 241 | + this.link = link; | ||
| 242 | + } | ||
| 243 | }]]> | 243 | }]]> |
| 244 | </programlisting> | 244 | </programlisting> |
| 245 | <para> | 245 | <para> |