[
https://issues.jboss.org/browse/JBIDE-11394?page=com.atlassian.jira.plugi...
]
Viacheslav Kabanovich commented on JBIDE-11394:
-----------------------------------------------
So, it may be a check-box 'Register in persistence.xml' in 'New JBoss
Datasource' wizard.
For a new <persistence-unit> element, would you please suggest a template? For
example, may it be hibernate-based, as follows
<persistence-unit name="$project_name">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>$data_source</jta-data-source>
<property name="hibernate.dialect"
value="$hibernate_dialect"/>
<property name="hibernate.hbm2ddl.auto" value="update"/>
<property name="hibernate.show_sql" value="true"/>
<property name="hibernate.format_sql" value="true"/>
</persistence-unit>
where $hibernate_dialect is to be computed by connection profile?
Generate persistence.xml and -ds.xml based on DTP Connection info
-----------------------------------------------------------------
Key: JBIDE-11394
URL:
https://issues.jboss.org/browse/JBIDE-11394
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: common/jst/core, hibernate
Environment: JBDS 5 Beta1
Reporter: Pete Muir
Assignee: Viacheslav Kabanovich
Priority: Minor
Fix For: 3.4.0.M1
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira