|
Hibernate example source code file (CopyrightableContent.java)
The Hibernate CopyrightableContent.java source codepackage org.hibernate.ejb.test.util; import javax.persistence.FetchType; import javax.persistence.ManyToOne; import javax.persistence.MappedSuperclass; /** * @author Emmanuel Bernard */ @MappedSuperclass public abstract class CopyrightableContent { private Author author; public CopyrightableContent() { } public CopyrightableContent(Author author) { this.author = author; } @ManyToOne(fetch = FetchType.LAZY) private Author getAuthor() { return author; } private void setAuthor(Author author) { this.author = author; } } Other Hibernate examples (source code examples)Here is a short list of links related to this Hibernate CopyrightableContent.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.