43 lines
764 B
Java
43 lines
764 B
Java
package eu.dnetlib.is.context.model;
|
|
|
|
import javax.persistence.Column;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.Id;
|
|
import javax.persistence.IdClass;
|
|
import javax.persistence.Table;
|
|
|
|
@Entity
|
|
@Table(name = "context_categories")
|
|
@IdClass(CategoryPK.class)
|
|
public class Category extends CtxInfoWithClaim {
|
|
|
|
private static final long serialVersionUID = -1847175903793410585L;
|
|
|
|
@Id
|
|
@Column(name = "id")
|
|
private String id;
|
|
|
|
@Id
|
|
@Column(name = "ctx_id")
|
|
private String contextId;
|
|
|
|
@Override
|
|
public String getId() {
|
|
return id;
|
|
}
|
|
|
|
@Override
|
|
public void setId(final String id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getContextId() {
|
|
return contextId;
|
|
}
|
|
|
|
public void setContextId(final String contextId) {
|
|
this.contextId = contextId;
|
|
}
|
|
|
|
}
|