Question about Clob object in Hibernate

In previous versions of Hibernate, it had the static api Hibernate.createClob (String), which allowed you to create a Clob object from String.

Now that this is deprecated, what is the proper way to store String as Clob in Hibernate?

It's hard for me to understand what a Persistence (POJO) object will look like.

Thanks.

+4
source share
2 answers

JPA @Lob abstract:

@Lob public String getFullText() { return fullText; } 

See http://docs.jboss.org/hibernate/annotations/3.5/reference/en/html/entity.html for more details.

+3
source

I created a blog on how to read the Oracle XML type in Hibernate. A similar approach would also require Clob. I wrote the details in

http://rationalspring.wordpress.com

0
source

All Articles