Przeglądaj źródła

Remove annotations after discussion with Matthew Porter.

Ben Alex 20 lat temu
rodzic
commit
2e51880608

+ 0 - 14
domain/project.xml

@@ -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>

+ 0 - 7
domain/src/main/java/org/acegisecurity/domain/impl/AbstractPersistableEntity.java

@@ -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;
     }

+ 0 - 4
domain/src/main/java/org/acegisecurity/domain/impl/PersistableEntityInteger.java

@@ -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();
     }

+ 0 - 4
domain/src/main/java/org/acegisecurity/domain/impl/PersistableEntityLong.java

@@ -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();
     }