[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Forcing bytea for Blobs in Postresql

Rhodan76 do-not-reply at jboss.com
Wed Dec 10 07:01:49 EST 2008


Hello,

we annotate all our lob-columns in the entity with the @javax.persistence.Lob annotation and let the persistence provider decide, what he will create in the specific database. So you are not tied a specific database handling of lobs.

Example:


  | 	public String description; 
  | 
  | 	@Column
  | 	@Lob
  | 	public String getDescription() {
  | 		return this.description;
  | 	}
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4195574#4195574

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4195574



More information about the jboss-user mailing list