<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Lets move this to the HBX jira.<br>
<br>
/max<br>
<br>
<blockquote
 cite="mid:e4107a470903111302s320b4f4fwe23a3859cb9ca8c3@mail.gmail.com"
 type="cite">Hi Everyone,<br>
  <br>
I'm working on a project using the Hibernate ant tools to generate DAO
objects for use inside a Spring context. The existing DAO exporter with
suffix "Home" uses JNDI to get the SessionFactory. However, Spring has
its own HibernateDaoSupport class which use dependency injection rather
than JNDI to determine the Sessionfactory. I could see that the classes
I needed were similar to the existing ones, but with modifications to
extend the HibernateDaoSupport and the dependency injection approach.<br>
  <br>
Bottom line is that I have downloaded the source and written a patch
for Hibernate Tools to actually create the Spring DAO objects. I
essentially copied the existing DAO export code, writing another
exporter. The xml is &lt;hbm2springdao&gt;. This addition does not
introduce a hibernate dependency on Spring.
Although the generated code obviously will depend on Spring there are
no compile time dependencies on it introduced into the exporter itself.
Is this something you want to include in the main distribution? Who
should I submit the patch to?<br>
  <br>
  <br>
  <pre wrap="">
<hr width="90%" size="4">
_______________________________________________
hibernate-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:hibernate-dev@lists.jboss.org">hibernate-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/hibernate-dev">https://lists.jboss.org/mailman/listinfo/hibernate-dev</a>
  </pre>
</blockquote>
<br>
</body>
</html>