mirror of https://github.com/apache/activemq.git
Added some more annotations so that intexs and the lob is properly handled
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@479194 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ec63977e81
commit
c9e75006df
|
@ -18,25 +18,31 @@ package org.apache.activemq.store.jpa.model;
|
|||
import javax.persistence.Basic;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Lob;
|
||||
|
||||
import org.apache.openjpa.persistence.jdbc.Index;
|
||||
|
||||
/**
|
||||
*/
|
||||
@Entity
|
||||
@Entity()
|
||||
public class StoredMessage {
|
||||
|
||||
@Id
|
||||
private long id;
|
||||
|
||||
@Basic
|
||||
@Basic(optional=false)
|
||||
@Index(enabled=true, unique=false)
|
||||
private String messageId;
|
||||
|
||||
@Basic
|
||||
@Basic(optional=false)
|
||||
@Index(enabled=true, unique=false)
|
||||
private String destination;
|
||||
|
||||
@Basic
|
||||
private long exiration;
|
||||
|
||||
@Basic
|
||||
@Lob
|
||||
private byte[] data;
|
||||
|
||||
public StoredMessage() {
|
||||
|
|
|
@ -21,6 +21,8 @@ import javax.persistence.GeneratedValue;
|
|||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
import org.apache.openjpa.persistence.jdbc.Index;
|
||||
|
||||
/**
|
||||
*/
|
||||
@Entity
|
||||
|
@ -91,10 +93,13 @@ public class StoredSubscription {
|
|||
private long id;
|
||||
|
||||
@Basic
|
||||
@Index(enabled=true, unique=false)
|
||||
private String destination;
|
||||
@Basic
|
||||
@Index(enabled=true, unique=false)
|
||||
private String clientId;
|
||||
@Basic
|
||||
@Index(enabled=true, unique=false)
|
||||
private String subscriptionName;
|
||||
|
||||
@Basic
|
||||
|
|
Loading…
Reference in New Issue