hibernate some understanding of the concept (to be continued)

hibernate.hbm2ddl.auto = create.
Usually you only leave it turned on in continuous unit testing, but another run of hbm2ddl would drop everything you have stored - the create configuration setting actually translates into "drop all tables from the schema, then re-create all tables, when the SessionFactory is build ".
Can see that it is deleted and rebuilt, I do not understand is that the reconstruction, while there is clear, it appears that is not right.

We recommend you declare consistently-named identifier properties on persistent classes. We further recommend that you use a nullable (ie. non-primitive) type.
Why not to recommend our basic types of settings that? Do not know. . . . . . It seems also need to master the interpretation, especially those who read the source code. . . . . . . .

Properties need not be declared public - Hibernate can persist a property with a default, protected or private get / set pair.
This benefited from the java functions provide a powerful reflection.

分类:Java 时间:2009-04-30 人气:374
分享到:
blog comments powered by Disqus

相关文章

iOS 开发

Android 开发

Python 开发

JAVA 开发

开发语言

PHP 开发

Ruby 开发

搜索

前端开发

数据库

开发工具

开放平台

Javascript 开发

.NET 开发

云计算

服务器

Copyright (C) codeweblog.com, All Rights Reserved.

CodeWeblog.com 版权所有 黔ICP备15002463号-1

processed in 0.141 (s). 12 q(s)