Last active
December 25, 2015 10:09
-
-
Save jrichardsz/6959907 to your computer and use it in GitHub Desktop.
Configuracion del 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
<!DOCTYPE hibernate-configuration PUBLIC | |
"-//Hibernate/Hibernate Configuration DTD//EN" | |
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> | |
<!-- | |
This hibernate configuration is used only for IMAGES_GALLERY stereotype, | |
because this stereotype is implemented using hibernate native APIs. | |
If you do not use IMAGE_GALLERY you do not need this file. | |
The datasource configured here is the datasource in where the images will be | |
store, and usually match wiht the main datasource of application defined in | |
persistence.xml. | |
--> | |
<hibernate-configuration> | |
<session-factory> | |
<!-- Tomcat + Hypersonic --> | |
<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> | |
</hibernate-configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment