Hibernate session
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2009 10:29 AM
Hello all.
I am developing my own model and I need to get hibernate session. How can I do this ?
thanks.
I am developing my own model and I need to get hibernate session. How can I do this ?
thanks.
Labels:
- Labels:
-
Archive
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2009 04:17 AM
public class YourDaoClassImpl extends HibernateDaoSupport implements YourDaoClass { public List getCoolStuff(){ return getHibernateTemplate().createQuery("from CoolClass").list(); }}
Following code should be added - for instance - to your custom-repository-context.xml or something else that can be found at this location: tomcat/shared/classes/alfresco/extension<!– Note: You should add Proxy-based Transaction-Support (Interceptor><bean id="yourDaoClass" class="classpath.YourDaoClassImpl "> <property name="sessionFactory" ref="sessionFactory" /></bean>
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2009 07:48 AM
First of all you need to get proxy updated system, and install it in the pc, but you didnt tell me how many systems you want to run on one proxy so that i can give you the exact formula for that, you can save you all data through this system but system must be updated, so tell me the exactly figure so that i can suggest you better.
