Révision 1923
tmp/org.txm.annotation.kr.core/src/org/txm/annotation/kr/core/storage/temporary/TemporaryAnnotationManager.java (revision 1923) | ||
---|---|---|
53 | 53 |
properties.put("javax.persistence.jdbc.url", urlProperty); |
54 | 54 |
properties.put("javax.persistence.jdbc.username", "SA"); |
55 | 55 |
properties.put(PersistenceUnitProperties.DDL_GENERATION_MODE, "database"); |
56 |
properties.put(PersistenceUnitProperties.DDL_GENERATION, "create-or-extend-tables"); // create&update table if needed
|
|
56 |
properties.put(PersistenceUnitProperties.DDL_GENERATION, "drop-and-create-tables"); // create&update table if needed, drop-and-create-tables to reset all
|
|
57 | 57 |
|
58 | 58 |
if (Log.getLevel().intValue() < Level.INFO.intValue()) { |
59 | 59 |
properties.put(PersistenceUnitProperties.LOGGING_LEVEL, "INFO"); |
... | ... | |
63 | 63 |
properties.put(PersistenceUnitProperties.LOGGING_PARAMETERS, "false"); |
64 | 64 |
} |
65 | 65 |
|
66 |
|
|
67 | 66 |
return properties; |
68 | 67 |
} |
69 | 68 |
private EntityManager em; |
Formats disponibles : Unified diff