|
Hibernate example source code file (Match.java)
The Hibernate Match.java source code//$Id$ package org.hibernate.test.annotations.reflection; import javax.persistence.Entity; import javax.persistence.Inheritance; import javax.persistence.InheritanceType; import javax.persistence.NamedNativeQueries; import javax.persistence.NamedNativeQuery; import javax.persistence.NamedQueries; import javax.persistence.NamedQuery; import javax.persistence.SecondaryTable; import javax.persistence.Table; import javax.persistence.Version; /** * @author Emmanuel Bernard */ @Entity @Table(name = "matchtable", schema = "matchschema") @SecondaryTable(name = "extendedMatch") @Inheritance(strategy = InheritanceType.TABLE_PER_CLASS) @NamedQueries({ @NamedQuery(name = "matchbyid", query = "select m from Match m where m.id = :id"), @NamedQuery(name = "getAllMatches2", query = "select m from Match m") }) @NamedNativeQueries({ @NamedNativeQuery(name = "matchbyid", query = "select m from Match m where m.id = :id", resultSetMapping = "matchrs"), @NamedNativeQuery(name = "getAllMatches2", query = "select m from Match m", resultSetMapping = "matchrs") }) public class Match extends Competition { public String competitor1Point; @Version public Integer version; public SocialSecurityNumber playerASSN; } Other Hibernate examples (source code examples)Here is a short list of links related to this Hibernate Match.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.