开发者

Deprecated Tag on Hibernate Annotation

开发者 https://www.devze.com 2023-02-01 15:08 出处:网络
Hibernate newbie here.I am trying my best to understand Hibernate and ORM in general and I do think I like some of the examples that I have been doing.

Hibernate newbie here. I am trying my best to understand Hibernate and ORM in general and I do think I like some of the examples that I have been doing.

I am used to hard-core JDBC alone mapping and I really like what this Hibernate can bring.

But question though, I am at the an开发者_运维技巧notation section now.

Configuration config = new AnnotationConfiguration();
config.configure();

But when I look up at the Javadocs of Hibernate 3.6 it has a tag of @Deprecated. All the tutorial that I am following is mentioning about how to configure annotation with these steps. But it didnt mention about any deprecation.

Am I missing something? Thanks


you can use the base class Configuration directly

Configuration config = new Configuration();
config.configure();

you will find in java doc for AnnotationConfiguration:

Deprecated. All functionality has been moved to Configuration

0

精彩评论

暂无评论...
验证码 换一张
取 消