Hibernate has a hibernate-mapping config file. There are a property attribute in it. The following is the property's parameters
Property:
1. name
2. type
3. column
4. not-null
5. update = 'true'
6. insert = 'true'
7. access = 'property' or 'field' or 'customer class' which must implements org.hibernate.property.PropertyAccessor interface.
8. formula
Column:
1. name
2. length
3. not-null
4. unique
5. index
Class:
1. name
2. table
3. lazy
4. mutable
5. dynamic-update = 'false'
6. dynamic-insert = 'false'
7. schema
Hibernate-mapping:
1. package
2. schema
Create a naming stragegy. Need to extends the class:
Interface: org.hibernate.cfg.NamingStrategy
1. org.hibernate.cfg.DefaultNamingStragegy
2. org.hibernate.cfg.ImprovedNamingStragegy
Developers also can extends the two stragegy to implement your naming stragegy.
分享到:
相关推荐
hibernate-mapping-3.0.dtd 配置后,就会在xml中进行提示
hibernate-mapping参数详解.docx
因为Hibernate在读出hbm.xml文件时需要通过网络读取到hibernate-mapping-3.0.dtd 文件。 如果没有网络不能正常工作。 所以提供上述文件。 以及hibernate-mapping-3.0.dtd,hibernate-configuration-3.0.dtd提供下载...
hibernate-mappinghibernate-mapping
hibernate-configuration-3.0.dtd、hibernate-mapping-3.0.dtd、hibernate.properties(5.0.7)
本书从社会学方面讲解数据分析,是一本难得的数据分析算法书籍,英文版的。
最新整理的hibernate-configuration的dtd文件,欢迎大家下载!最新整理的hibernate-configuration的dtd文件,欢迎大家下载!
hibernate-mapping-3.0.dtd hibernate-mapping-3.0.dtd hibernate-mapping-3.0.dtd hibernate-mapping-3.0.dtd hibernate-mapping-3.0.dtd hibernate-mapping-3.0.dtd hibernate-mapping-3.0.dtd hibernate-mapping-...
"http://hibernate.sourceforge.net/hibernate-mapping- 3.0.dtd" > <hibernate-mapping package="包名"> 类名" table="表名"> 主键在java类中的字段名" column="对应表中字段" type="类型 "> 主键生成...
<hibernate-mapping> <class name="com.bjsxt.hibernate.User" table="t_user"> <!-- <many-to-one name="group" column="groupid" cascade="all"/> --> <many-to-one name="group" column...
hibernate 无主键表映射资源说明: 1. 简单Demo 2. Demo对应的sql语句 3. 对应博客文档
详细的hibernate映射文件讲解 , 包含主键映射 , 属性映射 , 容器映射等 ,让你更轻松的使用hibernate
hibernate实体映射文件字段设置默认值