1 package org.hibernate.test.annotations.lob; 3 4 import javax.persistence.Entity; 5 import javax.persistence.GeneratorType; 6 import javax.persistence.Id; 7 import javax.persistence.Lob; 8 import javax.persistence.LobType; 9 10 15 @Entity 16 public class CompiledCode { 17 private Integer id; 18 private Byte [] header; 19 private byte[] fullCode; 20 private byte[] metadata; 21 22 public byte[] getMetadata() { 23 return metadata; 24 } 25 26 public void setMetadata(byte[] metadata) { 27 this.metadata = metadata; 28 } 29 30 @Id(generate = GeneratorType.AUTO) 31 public Integer getId() { 32 return id; 33 } 34 35 public void setId(Integer id) { 36 this.id = id; 37 } 38 @Lob(type = LobType.BLOB) 39 public Byte [] getHeader() { 40 return header; 41 } 42 43 public void setHeader(Byte [] header) { 44 this.header = header; 45 } 46 47 @Lob(type = LobType.BLOB) 48 public byte[] getFullCode() { 49 return fullCode; 50 } 51 52 public void setFullCode(byte[] fullCode) { 53 this.fullCode = fullCode; 54 } 55 } 56 | Popular Tags |