Spring+JPA自动生成Table配置
来源:互联网 发布:淘宝直通车默认出价 编辑:程序博客网 时间:2024/06/03 23:37
<bean id="dataSource"
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="com.mysql.jdbc.Driver" />
<property name="url" value="jdbc:mysql://127.0.0.1:3306/photo" />
<property name="username" value="root" />
<property name="password" value="root" />
</bean>
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
<property name="dataSource" ref="dataSource" />
<property name="annotatedClasses">
<list>
<value>com.tst.Person</value>
</list>
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">
org.hibernate.dialect.MySQLInnoDBDialect
</prop>
<prop key="hibernate.show_sql">true</prop>
<prop key="hibernate.hbm2ddl.auto">create-drop</prop>
</props>
</property>
</bean>
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="com.mysql.jdbc.Driver" />
<property name="url" value="jdbc:mysql://127.0.0.1:3306/photo" />
<property name="username" value="root" />
<property name="password" value="root" />
</bean>
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
<property name="dataSource" ref="dataSource" />
<property name="annotatedClasses">
<list>
<value>com.tst.Person</value>
</list>
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">
org.hibernate.dialect.MySQLInnoDBDialect
</prop>
<prop key="hibernate.show_sql">true</prop>
<prop key="hibernate.hbm2ddl.auto">create-drop</prop>
</props>
</property>
</bean>
- Spring+JPA自动生成Table配置
- JPA自动生成数据表
- JPA用TABLE生成主键
- hibernate jpa注解配置自动生成数据库时间
- JPA spring @Entity @Table 概述
- PowerDesigner自动生成Table
- js自动生成table
- JPA + Spring + struts2 配置
- jpa+spring文件配置
- Spring JPA 配置
- spring jpa struts2配置
- spring + jpa 配置
- spring data JPA 配置
- Spring JPA配置
- spring data JPA 配置
- spring data jpa 配置
- Spring + JPA + Hibernate配置
- Spring Data JPA配置
- Zipalign使用方法
- 《JAVA与模式》之策略模式
- 数据类型和运算符(总结)
- 编译动态库 .so
- [转贴] .NET委托:一个C#睡前故事
- Spring+JPA自动生成Table配置
- 第13章 平衡树
- error LNK2019: unresolved external symbol __imp__WSAStartup@8 referenced in function _wmain
- 记录下工作经历
- Cross site request in Jquery
- OCP-1Z0-051-V9.02-51题
- OC集合中(同上)student.h .m文件
- Android项目实战--手机卫士26--内容提供者与内容观察者
- Android上用speex做回音消除