Get rid of redundant JPA annotations
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@16909 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
24514aa33c
commit
3b447b344b
|
@ -52,13 +52,6 @@
|
||||||
<artifactId>javassist</artifactId>
|
<artifactId>javassist</artifactId>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.hibernate.java-persistence</groupId>
|
|
||||||
<artifactId>jpa-api</artifactId>
|
|
||||||
<version>2.0.Beta2</version>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue