Issue Details (XML | Word | Printable)

Key: OPENJPA-94
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Shay Banon
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
OpenJPA

Allow MappingTool and persistence.xml to support drop-create for database schema

Created: 02/Jan/07 09:27 PM   Updated: 01/Mar/07 02:13 AM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: 0.9.7

Time Tracking:
Not Specified

File Attachments:
  Size
Zip Archive openjpa_94.zip 2007-02-22 08:22 PM Sherry Shen 7 kB

Resolution Date: 31/Jan/07 09:16 PM


 Description  « Hide
Currently, in the persistence context, one can define:

<property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema" />

Which causes OpenJPA to build the database schema based on the mapping defined. Currently, there is no way to define it to drop tables if they exists before creating the database schema. This is very useful for tests that drop (if exists) and creates new tables for each test.


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.