-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: @Lob on class member vs method, Hibernate 3.6
PostPosted: Wed Apr 20, 2011 11:28 am 
Newbie

Joined: Tue Oct 06, 2009 8:44 am
Posts: 1
Hi,
After upgrading from Hibernate 3.5.x to 3.6.3 I have had problems getting Hibernate to use @Lob annotation.
It works when the @Lob is applied to the class member but not when it is applied to the class method.

This results in xmlMsg VARCHAR2(255) using ojdbc6 driver (Oracle):

Code:
private String xmlMsg;

@Lob
public String getXmlMsg(){
   return xmlMsg;
}


However, this works and creates a CLOB type in Oracle.
Code:
@Lob
private String xmlMsg;

public String getXmlMsg(){
   return xmlMsg;
}


I'm also using Spring 3.0.5 if thats matters.

Anyone else having the same problem?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.