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 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 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 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 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 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 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.
|