[
https://issues.jboss.org/browse/HIBERNATE-125?page=com.atlassian.jira.plu...
]
Matthias Wessendorf commented on HIBERNATE-125:
-----------------------------------------------
my persistence.xml:
<?xml version="1.0" encoding="UTF-8"?>
<persistence
xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
version="2.0">
<persistence-unit name="simpleModernEEApplication">
<jta-data-source>java:/CloudBeesDS</jta-data-source>
<class>net.wessendorf.enterprise.beans.PersistentObject</class>
<!-- @Entity classes -->
<class>net.wessendorf.enterprise.beans.Person</class>
<class>net.wessendorf.enterprise.beans.Friend</class>
<properties>
<!-- Hibernate settings..... -->
<property name="hibernate.dialect"
value="org.hibernate.dialect.MySQLDialect"/>
<property name="hibernate.hbm2ddl.auto" value="create"/>
</properties>
</persistence-unit>
</persistence>
I created a -ds file for CloudBee's hosted MySQL databases and its available.
the content is here:
<?xml version="1.0" encoding="UTF-8"?>
<datasources>
<local-tx-datasource>
<jndi-name>CloudBeesDS</jndi-name>
<connection-url>jdbc:mysql://SERVER.amazonaws.com:3306/schema</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>USER</user-name>
<password>PASSWD</password>
<min-pool-size>5</min-pool-size>
<max-pool-size>20</max-pool-size>
<idle-timeout-minutes>5</idle-timeout-minutes>
</local-tx-datasource>
</datasources>
Hibernate not creating tables (in mysql)
----------------------------------------
Key: HIBERNATE-125
URL:
https://issues.jboss.org/browse/HIBERNATE-125
Project: Hibernate Integration
Issue Type: Bug
Reporter: Matthias Wessendorf
Assignee: Steve Ebersole
I have the following in my persistence.xml:
<property name="hibernate.dialect"
value="org.hibernate.dialect.MySQLDialect"/>
<property name="hibernate.hbm2ddl.auto" value="create"/>
but hibernate is not creating my MySQL tables
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira