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:
Brian Stansberry 2009-06-23 16:21:35 +00:00
parent 07ee5fd8c6
commit 56b9660d2b
3 changed files with 0 additions and 27 deletions

View File

@ -24,9 +24,6 @@
package org.hibernate.test.cache.jbc2.functional; package org.hibernate.test.cache.jbc2.functional;
import java.io.Serializable; 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 * Entity that has a many-to-one relationship to a Customer
@ -46,7 +43,6 @@ public class Contact implements Serializable
} }
@Id
public Integer getId() public Integer getId()
{ {
return id; return id;
@ -77,8 +73,6 @@ public class Contact implements Serializable
this.tlf = tlf; this.tlf = tlf;
} }
@ManyToOne
@JoinColumn(name="CUST_ID")
public Customer getCustomer() public Customer getCustomer()
{ {
return customer; return customer;

View File

@ -26,8 +26,6 @@ package org.hibernate.test.cache.jbc2.functional;
import java.io.Serializable; import java.io.Serializable;
import java.util.Set; import java.util.Set;
import javax.persistence.Id;
/** /**
* Company customer * Company customer
* *
@ -47,7 +45,6 @@ public class Customer implements Serializable
{ {
} }
@Id
public Integer getId() public Integer getId()
{ {
return id; return id;

View File

@ -31,24 +31,6 @@ import java.io.Serializable;
* @author Brian Stansberry * @author Brian Stansberry
* @version $Revision: 60233 $ * @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 public class Account implements Serializable
{ {