Commit 391a10f2 authored by Lukas Jelonek's avatar Lukas Jelonek
Browse files

Updated persistent objects.

parent faaf15dd
......@@ -4,7 +4,7 @@
<groupId>de.cebitec.common</groupId>
<artifactId>dbxref</artifactId>
<version>1.0.0</version>
<version>1.0.1</version>
<packaging>bundle</packaging>
<name>DbXRef library</name>
......
......@@ -24,23 +24,24 @@ import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
/**
*
* @author cb
*/
@Entity
@Entity(name = "DbXRef")
public class SimpleDbXRef implements DbXRef, Serializable {
@Basic
@Column(name = "db")
@Column(name = "database")
private String database;
@Basic
@Column(name = "identifier")
private String id;
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.AUTO)
private Long testid;
private Long dbid;
public SimpleDbXRef() {
}
......@@ -60,12 +61,12 @@ public class SimpleDbXRef implements DbXRef, Serializable {
return id;
}
public void setTestid(Long testid) {
this.testid = testid;
public void setDatabaseId(Long testid) {
this.dbid = testid;
}
public Long getTestid() {
return testid;
public Long getDatabaseId() {
return dbid;
}
@Override
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment