Get rid of redundant JPA annotations
git-svn-id: https://svn.jboss.org/repos/hibernate/core/branches/Branch_3_3@16903 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
07ee5fd8c6
commit
56b9660d2b
|
@ -24,9 +24,6 @@
|
|||
package org.hibernate.test.cache.jbc2.functional;
|
||||
|
||||
import java.io.Serializable;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.ManyToOne;
|
||||
|
||||
/**
|
||||
* Entity that has a many-to-one relationship to a Customer
|
||||
|
@ -46,7 +43,6 @@ public class Contact implements Serializable
|
|||
|
||||
}
|
||||
|
||||
@Id
|
||||
public Integer getId()
|
||||
{
|
||||
return id;
|
||||
|
@ -77,8 +73,6 @@ public class Contact implements Serializable
|
|||
this.tlf = tlf;
|
||||
}
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name="CUST_ID")
|
||||
public Customer getCustomer()
|
||||
{
|
||||
return customer;
|
||||
|
|
|
@ -26,8 +26,6 @@ package org.hibernate.test.cache.jbc2.functional;
|
|||
import java.io.Serializable;
|
||||
import java.util.Set;
|
||||
|
||||
import javax.persistence.Id;
|
||||
|
||||
/**
|
||||
* Company customer
|
||||
*
|
||||
|
@ -47,7 +45,6 @@ public class Customer implements Serializable
|
|||
{
|
||||
}
|
||||
|
||||
@Id
|
||||
public Integer getId()
|
||||
{
|
||||
return id;
|
||||
|
|
|
@ -31,24 +31,6 @@ import java.io.Serializable;
|
|||
* @author Brian Stansberry
|
||||
* @version $Revision: 60233 $
|
||||
*/
|
||||
// @NamedQuery(name="account.totalbalance.default",query="select account.balance from Account as account where account.accountHolder = ?1",
|
||||
// hints={@QueryHint(name="org.hibernate.cacheable",value="true")}),
|
||||
// @NamedQuery(name="account.totalbalance.namedregion",query="select account.balance from Account as account where account.accountHolder = ?1",
|
||||
// hints={@QueryHint(name="org.hibernate.cacheRegion",value="AccountRegion"),
|
||||
// @QueryHint(name="org.hibernate.cacheable",value="true")
|
||||
// }),
|
||||
// @NamedQuery(name="account.branch.default",query="select account.branch from Account as account where account.accountHolder = ?1",
|
||||
// hints={@QueryHint(name="org.hibernate.cacheable",value="true")}),
|
||||
// @NamedQuery(name="account.branch.namedregion",query="select account.branch from Account as account where account.accountHolder = ?1",
|
||||
// hints={@QueryHint(name="org.hibernate.cacheRegion",value="AccountRegion"),
|
||||
// @QueryHint(name="org.hibernate.cacheable",value="true")
|
||||
// }),
|
||||
// @NamedQuery(name="account.bybranch.default",query="select account from Account as account where account.branch = ?1",
|
||||
// hints={@QueryHint(name="org.hibernate.cacheable",value="true")}),
|
||||
// @NamedQuery(name="account.bybranch.namedregion",query="select account from Account as account where account.branch = ?1",
|
||||
// hints={@QueryHint(name="org.hibernate.cacheRegion",value="AccountRegion"),
|
||||
// @QueryHint(name="org.hibernate.cacheable",value="true")
|
||||
// })
|
||||
public class Account implements Serializable
|
||||
{
|
||||
|
||||
|
|
Loading…
Reference in New Issue