[hibernate-issues] [Hibernate-JIRA] Closed: (HBX-89) Common properties in hibernate.cfg.xml as attribute of <session-factory>

Max Rydahl Andersen (JIRA) noreply at atlassian.com
Tue Nov 28 07:29:05 EST 2006


     [ http://opensource.atlassian.com/projects/hibernate/browse/HBX-89?page=all ]
     
Max Rydahl Andersen closed HBX-89:
----------------------------------


> Common properties in hibernate.cfg.xml as attribute of <session-factory>
> ------------------------------------------------------------------------
>
>          Key: HBX-89
>          URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-89
>      Project: Hibernate Tools
>         Type: Improvement

>   Components: eclipse
>     Reporter: Adrien
>     Priority: Minor
>      Fix For: 3.1beta1

>
>
> It will be great to have more assistance from the DTD to set the common properties in hibernate.cfg.xml. By example :
> <hibernate-configuration>
> 	<session-factory name="foo"
> 	     dialect    = "org.hibernate.dialect.HSQLDialect"
>              show_sql   = "true"
>              datasource = "java:comp/DataSource" >
> 		<property name="c3p0.timeout">60</property>
> 		<property name="c3p0.max_size">100</property>
>                 <property name="jndi.foo">bar</property>
> 		<mapping resource="Product.hbm.xml"/>
> 		<mapping resource="Customer.hbm.xml"/>
> 	</session-factory>
> </hibernate-configuration>
> This way, we avoid having error like mistape some properties name. The XML validator we instantly tell us what's wrong. The current way will still be needed for non-standard or custom properties.
> I could work on it if needed.
>   Adrien

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira




More information about the hibernate-issues mailing list