Why can't Hibernate STRING be resolved?

I just downloaded the new version of the final version of Hibernate 4.0.1. It is very strange that when I type the following code:

Hibernate.STRING 

The eclipse IDE displays a STRING keyword error. I am sure that I have a sleeping drum in my build path, as well as the following code:

 import org.hibernate.Hibernate; 

I'm just wondering why this could happen?

+8
java hibernate
source share
1 answer

Because this field does not exist in 4.0 .

The field documentation in 3.5 says the following:

Outdated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138

Now you can use StandardBasicTypes.STRING (this is pretty much StringType.INSTANCE ).

+17
source share

All Articles