git://wamblee.org
/
utils
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
jpauserset now working.
[utils]
/
security
/
impl
/
src
/
main
/
java
/
org
/
wamblee
/
security
/
AbstractPersistent.java
diff --git
a/security/impl/src/main/java/org/wamblee/security/AbstractPersistent.java
b/security/impl/src/main/java/org/wamblee/security/AbstractPersistent.java
index f5944843ab7a5cd9017da1ed44ee44257d50b306..cd2837dd389187902af5345f40284aaad1a28cec 100644
(file)
--- a/
security/impl/src/main/java/org/wamblee/security/AbstractPersistent.java
+++ b/
security/impl/src/main/java/org/wamblee/security/AbstractPersistent.java
@@
-17,11
+17,6
@@
package org.wamblee.security;
import java.io.Serializable;
import java.io.Serializable;
-import javax.persistence.GeneratedValue;
-import javax.persistence.GenerationType;
-import javax.persistence.Id;
-import javax.persistence.Version;
-
import org.wamblee.persistence.Persistent;
/**
import org.wamblee.persistence.Persistent;
/**
@@
-30,13
+25,10
@@
import org.wamblee.persistence.Persistent;
* @author Erik Brakkee
*/
public abstract class AbstractPersistent implements Persistent {
* @author Erik Brakkee
*/
public abstract class AbstractPersistent implements Persistent {
-
- @Id
- @GeneratedValue(strategy = GenerationType.AUTO)
- private Long primaryKey;
+
+ private Serializable primaryKey;
- @Version
- private int version;
+ private Number version;
protected AbstractPersistent() {
primaryKey = null;
protected AbstractPersistent() {
primaryKey = null;
@@
-60,7
+52,7
@@
public abstract class AbstractPersistent implements Persistent {
* @see org.wamblee.persistence.Persistent#getPrimaryKey()
*/
@Override
* @see org.wamblee.persistence.Persistent#getPrimaryKey()
*/
@Override
- public
Long
getPrimaryKey() {
+ public
Serializable
getPrimaryKey() {
return primaryKey;
}
return primaryKey;
}
@@
-71,7
+63,7
@@
public abstract class AbstractPersistent implements Persistent {
* org.wamblee.persistence.Persistent#setPrimaryKey(java.io.Serializable)
*/
@Override
* org.wamblee.persistence.Persistent#setPrimaryKey(java.io.Serializable)
*/
@Override
- public void setPrimaryKey(
Long
aKey) {
+ public void setPrimaryKey(
Serializable
aKey) {
primaryKey = aKey;
}
primaryKey = aKey;
}
@@
-80,7
+72,7
@@
public abstract class AbstractPersistent implements Persistent {
*
* @see org.wamblee.persistence.Persistent#getPersistedVersion()
*/
*
* @see org.wamblee.persistence.Persistent#getPersistedVersion()
*/
- public
int
getPersistedVersion() {
+ public
Number
getPersistedVersion() {
return version;
}
return version;
}
@@
-89,7
+81,7
@@
public abstract class AbstractPersistent implements Persistent {
*
* @see org.wamblee.persistence.Persistent#setPersistedVersion(int)
*/
*
* @see org.wamblee.persistence.Persistent#setPersistedVersion(int)
*/
- public void setPersistedVersion(
int
aVersion) {
+ public void setPersistedVersion(
Number
aVersion) {
version = aVersion;
}
}
version = aVersion;
}
}