Remove annotations after discussion with Matthew Porter.

This commit is contained in:
Ben Alex 2005-05-26 01:47:29 +00:00
parent 4b039011fc
commit 2e51880608
4 changed files with 0 additions and 29 deletions

View File

@ -19,20 +19,6 @@
<type>jar</type>
<url>http://www.hibernate.org</url>
</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>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>

View File

@ -15,10 +15,6 @@
package net.sf.acegisecurity.domain.impl;
import javax.persistence.Column;
import javax.persistence.Transient;
import javax.persistence.Version;
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,
* <code>false</code> otherwise
*/
@Transient
public boolean isNew() {
return (getInternalId() == null);
}
@ -66,8 +61,6 @@ public abstract class AbstractPersistableEntity extends BusinessObject
*
* @return the version
*/
@Version
@Column(name="version", nullable=false)
public int getVersion() {
return version;
}

View File

@ -17,8 +17,6 @@ package net.sf.acegisecurity.domain.impl;
import java.io.Serializable;
import javax.persistence.Transient;
/**
* 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
* so their annotations reflect the correct sequence name.
*/
@Transient
public abstract Integer getId();
/**
@ -71,7 +68,6 @@ public abstract class PersistableEntityInteger extends AbstractPersistableEntity
*
* @return the instance's identity
*/
@Transient
public Serializable getInternalId() {
return this.getId();
}

View File

@ -17,8 +17,6 @@ package net.sf.acegisecurity.domain.impl;
import java.io.Serializable;
import javax.persistence.Transient;
/**
* 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
* so their annotations reflect the correct sequence name.
*/
@Transient
public abstract Long getId();
/**
@ -71,7 +68,6 @@ public abstract class PersistableEntityLong extends AbstractPersistableEntity {
*
* @return the instance's identity
*/
@Transient
public Serializable getInternalId() {
return this.getId();
}