mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-26 13:53:14 +00:00
Remove annotations after discussion with Matthew Porter.
This commit is contained in:
parent
4b039011fc
commit
2e51880608
@ -19,20 +19,6 @@
|
|||||||
<type>jar</type>
|
<type>jar</type>
|
||||||
<url>http://www.hibernate.org</url>
|
<url>http://www.hibernate.org</url>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>hibernate</groupId>
|
|
||||||
<artifactId>ejb</artifactId>
|
|
||||||
<version>3.0-edr2</version>
|
|
||||||
<type>jar</type>
|
|
||||||
<url>http://www.hibernate.org</url>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>hibernate</groupId>
|
|
||||||
<artifactId>hibernate-annotations</artifactId>
|
|
||||||
<version>3.0-beta1</version>
|
|
||||||
<type>jar</type>
|
|
||||||
<url>http://www.hibernate.org</url>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>commons-lang</groupId>
|
<groupId>commons-lang</groupId>
|
||||||
<artifactId>commons-lang</artifactId>
|
<artifactId>commons-lang</artifactId>
|
||||||
|
@ -15,10 +15,6 @@
|
|||||||
|
|
||||||
package net.sf.acegisecurity.domain.impl;
|
package net.sf.acegisecurity.domain.impl;
|
||||||
|
|
||||||
import javax.persistence.Column;
|
|
||||||
import javax.persistence.Transient;
|
|
||||||
import javax.persistence.Version;
|
|
||||||
|
|
||||||
import net.sf.acegisecurity.domain.PersistableEntity;
|
import net.sf.acegisecurity.domain.PersistableEntity;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -50,7 +46,6 @@ public abstract class AbstractPersistableEntity extends BusinessObject
|
|||||||
* @return <code>true</code> if the instance has not been persisted,
|
* @return <code>true</code> if the instance has not been persisted,
|
||||||
* <code>false</code> otherwise
|
* <code>false</code> otherwise
|
||||||
*/
|
*/
|
||||||
@Transient
|
|
||||||
public boolean isNew() {
|
public boolean isNew() {
|
||||||
return (getInternalId() == null);
|
return (getInternalId() == null);
|
||||||
}
|
}
|
||||||
@ -66,8 +61,6 @@ public abstract class AbstractPersistableEntity extends BusinessObject
|
|||||||
*
|
*
|
||||||
* @return the version
|
* @return the version
|
||||||
*/
|
*/
|
||||||
@Version
|
|
||||||
@Column(name="version", nullable=false)
|
|
||||||
public int getVersion() {
|
public int getVersion() {
|
||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
|
@ -17,8 +17,6 @@ package net.sf.acegisecurity.domain.impl;
|
|||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
import javax.persistence.Transient;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A persistable entity that uses a <code>Integer</code> based identity.
|
* A persistable entity that uses a <code>Integer</code> based identity.
|
||||||
*
|
*
|
||||||
@ -52,7 +50,6 @@ public abstract class PersistableEntityInteger extends AbstractPersistableEntity
|
|||||||
* <p>Marked as abstract to remind users to implement. They'll need to implement
|
* <p>Marked as abstract to remind users to implement. They'll need to implement
|
||||||
* so their annotations reflect the correct sequence name.
|
* so their annotations reflect the correct sequence name.
|
||||||
*/
|
*/
|
||||||
@Transient
|
|
||||||
public abstract Integer getId();
|
public abstract Integer getId();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -71,7 +68,6 @@ public abstract class PersistableEntityInteger extends AbstractPersistableEntity
|
|||||||
*
|
*
|
||||||
* @return the instance's identity
|
* @return the instance's identity
|
||||||
*/
|
*/
|
||||||
@Transient
|
|
||||||
public Serializable getInternalId() {
|
public Serializable getInternalId() {
|
||||||
return this.getId();
|
return this.getId();
|
||||||
}
|
}
|
||||||
|
@ -17,8 +17,6 @@ package net.sf.acegisecurity.domain.impl;
|
|||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
import javax.persistence.Transient;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A persistable entity that uses a <code>Long</code> based identity.
|
* A persistable entity that uses a <code>Long</code> based identity.
|
||||||
*
|
*
|
||||||
@ -52,7 +50,6 @@ public abstract class PersistableEntityLong extends AbstractPersistableEntity {
|
|||||||
* <p>Marked as abstract to remind users to implement. They'll need to implement
|
* <p>Marked as abstract to remind users to implement. They'll need to implement
|
||||||
* so their annotations reflect the correct sequence name.
|
* so their annotations reflect the correct sequence name.
|
||||||
*/
|
*/
|
||||||
@Transient
|
|
||||||
public abstract Long getId();
|
public abstract Long getId();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -71,7 +68,6 @@ public abstract class PersistableEntityLong extends AbstractPersistableEntity {
|
|||||||
*
|
*
|
||||||
* @return the instance's identity
|
* @return the instance's identity
|
||||||
*/
|
*/
|
||||||
@Transient
|
|
||||||
public Serializable getInternalId() {
|
public Serializable getInternalId() {
|
||||||
return this.getId();
|
return this.getId();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user