Last active
February 5, 2017 16:22
-
-
Save jrichardsz/6963258 to your computer and use it in GitHub Desktop.
Cambios en el archivo hibernate.cfg.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dialect, user and password | |
This: | |
<session-factory> | |
<!-- Tomcat + Hypersonic --> | |
<property name="hibernate.connection.datasource">java:comp/env/jdbc/OpenXavaTestDS</property> | |
<property name="hibernate.dialect">org.hibernate.dialect.HSQLDialect</property> | |
<property name="hibernate.jdbc.use_get_generated_keys">false</property> | |
<property name="hibernate.show_sql">false</property> | |
<!-- GalleryImage is needed only if you uses IMAGES_GALLERY/GALERIA_IMAGENES stereotype --> | |
<mapping resource="GalleryImage.hbm.xml"/> | |
</session-factory> | |
To: | |
<session-factory> | |
<!-- Tomcat + Mysql --> | |
<property name="hibernate.connection.datasource">java:comp/env/jdbc/EmpresaDS</property> | |
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect" /> | |
<property name="hibernate.jdbc.use_get_generated_keys">false</property> | |
<property name="hibernate.user">myuser</property> | |
<property name="hibernate.password">mypass</property> | |
<property name="hibernate.show_sql">false</property> | |
<!-- GalleryImage is needed only if you uses IMAGES_GALLERY/GALERIA_IMAGENES stereotype --> | |
<mapping resource="GalleryImage.hbm.xml"/> | |
</session-factory> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment