Skip to main content

[jpa-spec issues] [JIRA] Resolved: (JPA_SPEC-31) Standard property for DDL generation

  • From: "ldemichiel (JIRA)" < >
  • To:
  • Subject: [jpa-spec issues] [JIRA] Resolved: (JPA_SPEC-31) Standard property for DDL generation
  • Date: Fri, 18 Jan 2013 01:04:53 +0000 (GMT+00:00)
  • Auto-submitted: auto-generated


     [ 
http://java.net/jira/browse/JPA_SPEC-31?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ldemichiel resolved JPA_SPEC-31.
--------------------------------

    Resolution: Fixed

Metadata for schema generation has been added

> Standard property for DDL generation
> ------------------------------------
>
>                 Key: JPA_SPEC-31
>                 URL: http://java.net/jira/browse/JPA_SPEC-31
>             Project: jpa-spec
>          Issue Type: New Feature
>            Reporter: arjan tijms
>
> In JPA 2 it's possible for a developer to influence how DDL gets generated, 
> e.g. via various attributes on the {{@Column}} annotation. However, how to 
> actually tell the persistence provider that it should in fact generate DDL 
> is not defined in the spec.
> This leads to verbose entries in {{persistence.xml}} such as the following:
> {code:xml}
>  <properties>
>     <!-- Hibernate -->
>     <property name="hibernate.hbm2ddl.auto" value="create-drop" />
>             
>     <!-- EclipseLink  -->
>     <property name="eclipselink.ddl-generation" value="create-tables" />
>     <property name="eclipselink.ddl-generation.output-mode" 
> value="database" />
>     <!-- OpenJPA -->
>     <property name="openjpa.jdbc.SynchronizeMappings" 
> value="buildSchema(ForeignKeys=true)"/>
> </properties>
> {code}
> Not only does it make the descriptor verbose, it also requires the 
> developer having to hunt for this information for all known persistence 
> providers, and it will most likely not cover any future persistence 
> providers.
> Since this is clearly not optimal, I would like to request introducing a 
> standard property that tells the persistence provider to do DDL generation.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[jpa-spec issues] [JIRA] Resolved: (JPA_SPEC-31) Standard property for DDL generation

ldemichiel (JIRA) 01/18/2013
 
 
Close
loading
Please Confirm
Close