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? |
|
|
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. |
|