[Building Sakai] generic-dao
Noah Botimer
botimer at umich.edu
Wed Jan 15 12:11:53 PST 2014
Peter,
I realize that this is probably not the answer you're looking for. The relationship between generic-dao, Spring 3, and Hibernate will need to be reconciled eventually. This is more of a background message since I worked on the upgrades of both.
As of Spring 3, the HibernateDaoSupport / HibernateTemplate stuff is discouraged. Our usage of these is why we couldn't upgrade to Hibernate 4, since they are explicitly for Hibernate 3 and do not support 4.x (or at least I did not see any workaround/bridge). For years, Spring has recommended that you use the Hibernate API directly. The support classes were made before Hibernate 3 so it was easier to integrate Hibernate and Spring transactions. I suppose they were successful, but Hibernate has done this natively, I think, since 3.0.
http://stackoverflow.com/questions/5104765/hibernatedaosupport-is-not-recommended-why
http://docs.spring.io/spring-framework/docs/3.2.x/javadoc-api/org/springframework/orm/hibernate3/HibernateTemplate.html
However, you should still be able to use the org.springframework.orm.hibernate3.support package while we are using Hibernate 3. I'm quite sure that other tools using generic-dao have come over without problems.
While typing this up, it looks like you have found the answer. Including spring-orm should make everything available.
Thanks,
-Noah
On Jan 15, 2014, at 2:17 PM, Aaron Zeckoski wrote:
> I don't think we have changed the stuff in generic-dao (certainly by
> removing things) in awhile. What are you trying to do? Can you point
> to some code?
> -AZ
>
> On Wed, Jan 15, 2014 at 2:02 PM, Liu, Peter <peter.liu at yale.edu> wrote:
>> Hi Aaron,
>>
>>
>>
>> Are there any changes for generic-dao for Spring 3.2.3.release version
>> (Sakai 10)?
>>
>>
>>
>> The getHibernateTemplate() method is missing for HibernateGeneralGenericDao
>>
>>
>>
>>
>>
>> Any advice?
>>
>>
>>
>> Thanks,
>>
>> Peter
>>
>>
>>
>> From: Liu, Peter
>> Sent: Wednesday, January 15, 2014 1:52 PM
>> To: 'Anthony Whyte'; Swinsburg Steve
>> Subject: RE: Jenkins: external-calendaring-service
>>
>>
>>
>> I almost get Sakai 10 environment set up.
>>
>>
>>
>> I have just noticed that after updated to Spring 3.2.3.relesae, the
>> getHibernateTemplate() method is missing in generic-dao.
>>
>>
>>
>> Have you guy already resolved this issue?
>>
>>
>>
>> Thanks,
>>
>> Peter
>>
>>
>>
>> From: Anthony Whyte [mailto:arwhyte at umich.edu]
>> Sent: Wednesday, January 15, 2014 12:23 PM
>> To: Swinsburg Steve; Liu, Peter
>> Subject: Jenkins: external-calendaring-service
>>
>>
>>
>> Poms tweeked, job created, eggs now in the basket.
>>
>>
>>
>> http://oss.sonatype.org/content/repositories/snapshots/org/sakaiproject/calendaring/
>>
>>
>>
>> Steve--a request. The spring dependencies need updating to bring them up to
>> 3.2.3-RELEASE. Can you deal with that? Otherwise, I'll work on fixing
>> them.
>>
>>
>>
>> Now back to signup to get rid of the ecs deploy pom.
>>
>>
>>
>> Signup is also being deployed to the sonatype repo.
>>
>>
>>
>> anthony whyte | its and mlibrary | university of michigan |
>> arwhyte at umich.edu | 517-980-0228
>>
>>
>
>
>
> --
> Aaron Zeckoski - Software Architect - http://tinyurl.com/azprofile
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20140115/0181a566/attachment.html
More information about the sakai-dev
mailing list