openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pinaki Poddar <ppod...@apache.org>
Subject Re: ClassNotFoundException on persisting serialized class
Date Fri, 06 Mar 2009 17:04:33 GMT

You are annotating getter/setter, but their names do not match bean-style.
public com.MyData getMyData() {...}
public void setMetadataList(com.MyData myData) {...}



Jon Solanu wrote:
> 
> The errors went away when I added an explicit em.flush to the method
> inserting the serialized object.  However a null is still being inserted
> into the databse for that field.  I attempted to change the attribute
> value to specify that it was a blob field but that had no affect.
> 
> 
> 
> 	@Lob()
> 	@Basic(fetch=FetchType.EAGER)
> 	@Column(name="MYDATA_LIST")
> 	public com.MyData getMyData() {
> 		return this.myData;
> 	}
> 	public void setMetadataList(com.MyData myData) {
> 		this.myData= myData;
> 	}
> 
> 

-- 
View this message in context: http://n2.nabble.com/ClassNotFoundException-on-persisting-serialized-class-tp2433282p2436888.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.


Mime
View raw message