由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - How to create empty tables in JPA/Hierbnate
相关主题
Web Seminar hosted by CINAOUG on 2011/06/13 (转载)问个Spring Framework的数据库设置的问题
问问java认证请教一个hinbernate mapping的问题,谢谢
问个JPA的问题JSF, Wicket, and Vaadin
Search Results Navigation这么多的JSF Ajax Component Libraries
Criticism of Java Persistence Frameworks谁给推荐一个简单的ORM吧
How to specify indexes in JPA?云计算如何应用到传统的web server应用
spring transaction的问题怎么快速掌握J2EE?
hibernate和ejb3JDBC
相关话题的讨论汇总
话题: tables话题: create话题: jpa话题: hierbnate话题: empty
进入Java版参与讨论
1 (共1页)
F****n
发帖数: 3271
1
Normally I let hibernate automatically create tables for entities. But how
to create empty tables without persist any entities?
g*****g
发帖数: 34805
2
I normally don't use that, but I guess you can add a
entry and delete it?

【在 F****n 的大作中提到】
: Normally I let hibernate automatically create tables for entities. But how
: to create empty tables without persist any entities?

A**o
发帖数: 1550
3
or run a sql statement?

【在 g*****g 的大作中提到】
: I normally don't use that, but I guess you can add a
: entry and delete it?

q*********a
发帖数: 340
4
you have to know more about hibernate
t*******e
发帖数: 684
5
Rephrase your question please.
Steps I took,
Use hbm2ddl to generate and run SQL script from entities,
Run DBunit to insert testing data into the tables, or ask DBAs to load
testing data for you
Write Unit test cases with Transational annotation rollback=true.
F****n
发帖数: 3271
6
The step I took: directly write SQL to create tables in the DBMS. You can
create all the indexes there while JPA cannot.
I mean, it's not the point.

【在 t*******e 的大作中提到】
: Rephrase your question please.
: Steps I took,
: Use hbm2ddl to generate and run SQL script from entities,
: Run DBunit to insert testing data into the tables, or ask DBAs to load
: testing data for you
: Write Unit test cases with Transational annotation rollback=true.

1 (共1页)
进入Java版参与讨论
相关主题
JDBCCriticism of Java Persistence Frameworks
Annotations JPA Cachable vs Hibernate CacheHow to specify indexes in JPA?
JPA Criteria API select questionspring transaction的问题
Java开发人员知识点(更新) (转载)hibernate和ejb3
Web Seminar hosted by CINAOUG on 2011/06/13 (转载)问个Spring Framework的数据库设置的问题
问问java认证请教一个hinbernate mapping的问题,谢谢
问个JPA的问题JSF, Wicket, and Vaadin
Search Results Navigation这么多的JSF Ajax Component Libraries
相关话题的讨论汇总
话题: tables话题: create话题: jpa话题: hierbnate话题: empty