Changeset 5386
- Timestamp:
- Aug 13, 2010, 3:00:23 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/core/net/sf/basedb/core/HibernateUtil.java
r5384 r5386 518 518 try 519 519 { 520 List exceptions; 520 521 if (update) 521 522 { … … 532 533 // Note! This doesn't create indexes correctly. Use dbIndexes method. 533 534 SchemaUpdate se = new SchemaUpdate(cfg); 535 se.setHaltOnError(true); 534 536 se.execute(false, true); 537 exceptions = se.getExceptions(); 535 538 } 536 539 else 537 540 { 538 541 SchemaExport se = new SchemaExport(cfg); 542 se.setHaltOnError(true); 539 543 se.execute(false, true, false, true); 544 exceptions = se.getExceptions(); 545 } 546 if (exceptions != null && exceptions.size() > 0) 547 { 548 throw new BaseException((Throwable)exceptions.get(0)); 540 549 } 541 550 }
Note: See TracChangeset
for help on using the changeset viewer.