[jboss-user] [Beginner's Corner] - Re: Jboss 4.2 and Hibernate: How do I autogenerate tables in database
Ilian Mitev
do-not-reply at jboss.com
Sun May 1 04:20:50 EDT 2011
Ilian Mitev [http://community.jboss.org/people/immitev] created the discussion
"Re: Jboss 4.2 and Hibernate: How do I autogenerate tables in database"
To view the discussion, visit: http://community.jboss.org/message/602879#602879
--------------------------------------------------------------
Small adition: The DataSource file declared in the hibernate.cfg.xml is in the Jboss_Home/server/default/deploy. Here is the file:
<?xml version="1.0" encoding="UTF-8"?>
<datasources>
<local-tx-datasource>
<jndi-name>SampleDS</jndi-name>
<connection-url>jdbc:mysql://localhost/astrachallenge</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<min-pool-size>1</min-pool-size>
<max-pool-size>20</max-pool-size>
<user-name>root</user-name>
<password>kralitsa6817</password>-->
<metadata>
<type-mapping>mySQL</type-mapping>
</metadata>
</local-tx-datasource>
</datasources>
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/602879#602879]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110501/350b056e/attachment.html
More information about the jboss-user
mailing list