|
Hibernate example source code file (Document.java)
The Hibernate Document.java source code//$Id: Document.java 7635 2005-07-24 23:04:30Z oneovthafew $ package org.hibernate.test.extralazy; public class Document { private String title; private String content; private User owner; Document() {} public Document(String title, String content, User owner) { this.content = content; this.owner = owner; this.title = title; owner.getDocuments().add(this); } public String getContent() { return content; } public void setContent(String content) { this.content = content; } public User getOwner() { return owner; } public void setOwner(User owner) { this.owner = owner; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } } Other Hibernate examples (source code examples)Here is a short list of links related to this Hibernate Document.java source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.