HibernateTemplate 1 « JPA « Spring Q&A





1. Applying Spring .Net Advice to HibernateTemplate object    stackoverflow.com

I have an class for auditing:

public class AuditAfterAdvise : IAfterReturningAdvice
This is applied to a Dao class in my Spring.Net configuration, using a RegularExpressionMethodPointcutAdvisor. The Dao class implementation calls HibernateTemplate.SaveOrUpdate(object entity) to commit ...

2. Why would Spring's HibernateTemplate's loadAll() method generate updates for each row?    stackoverflow.com

I have a database table consisting of countries. In my DAO which extends HibernateDAOSupport the following method...

public List<Country> getCountries() {
 return getHibernateTemplate().loadAll(Country.class);
}
...generates the following activity:
Hibernate: update countries set name=?, iso_alpha_2=?, ...

3. Does HibernateTemplate work with Envers? If so, how?    stackoverflow.com

I am trying to use Envers on a project that also uses Hibernate and Spring - and I appreciate a lot the code reduction offered by HibernateTemplate. I configured Envers under JPA, ...

4. hibernatetemplate clear ehcache?    stackoverflow.com

<ehcache>
    <cache name="query.ContactInfoList"
        maxElementsInMemory="200"
        eternal="true"
        overflowToDisk="false"
  ...

5. how long can spring hibernatetemplate createSQLQuery where in(..) can be?    stackoverflow.com

is there any limit of statement i can use where in(1,2,3,4,5,6....) in createSQLQuery in spring hibernatetemplate() ?

6. spring batch insert using hibernateTemplate, JdbcTemplate    stackoverflow.com

I have a few questions related to batch insert in Spring. When I do something like that:

 public void save(Car car) {
String sql1 = "insert into Car values (1, 'toyota')"; String ...

7. HibernateTemplate alwaysUseNewSession    stackoverflow.com

I had a problem where I was using the hibernate template to do most of my DB work but I had a part of the system that directly accessed the session ...

8. How to call a stored procedure using HibernateTemplate in spring framework?    stackoverflow.com

Can anyone help me with calling a stored procedure using HibernateTemplate in spring framework? I'm new to Hibernate, so please help me with this. Thanks in advance, Sinu Mathews

9. Multivalue Mysql Inserts using HibernateTemplate    stackoverflow.com

I am using Spring HibernateTemplate and need to insert hundreds of records into a mysql database every second. Not sure what is the most performant way of doing it, but I am ...





10. HibernateTemplate findByExample returns no results    stackoverflow.com

I'm trying to use Hibernate QBE (actually, Spring's HibernateTemplate.findByExample() ) to return a list of users by their username. I use a "known good" value to search on (the username "JOHN.SMITH" ...

11. hibernate many-to-many association and spring hibernatetemplate doesn't work    stackoverflow.com

I am using Spring HibernateTemplate, OpenSessionInViewFilter(actually I extended this class and created my own to switch to FLUSH.AUTO Mode) and Mysql for implementing hibernate many-to-many association. However when I save an ...

12. How do i use HibernateTemplate.findByNamedParam()?    stackoverflow.com

HI, i am trying to use the above spring hibernate temnplate method do a simple query based on a specific ID from the database but the problem is that the query ...

13. Why findXXX() methods in HibernateTemplate return non-parametrized List?    stackoverflow.com

Spring 3.0 added a lot of features to be java 5 compatible. Many methods are parametrized now. For example HibernateTemplate.executeXXX(), HibernateTemplate.getXXX(), HibernateTemplate.mergeXXX() return T, HibernateTemplate.loadAll() returns List<T>. But findXXX() methods return plain ...

14. Hibernate Envers with Spring using HibernateTemplate    stackoverflow.com

I'm trying to setup Envers in a Spring environment. Everything works fine, when I retrieve a session manually from the SessionFactory and put everything inside a Transaction:

Session session = sessionFactory.openSession();
Transaction tx ...

15. select Query Run for hibernateTemplate.save()    stackoverflow.com

I am using hibernate 3.5.0 final with spring.In this I want to save data to a table which has a composite key associated from three other tables.I have used hibernateTemplate.save().But when ...

16. Pagination with HibernateTemplate's findByNamedParam function    stackoverflow.com

I've seen lots of examples of how to create pagination with some really simple queries. But I don't see any using HibernateTemplate's findByNamedParam method. How can I set a query's firstResult ...





17. "missing SET keyword" on hibernateTemplate bulkUpdate    stackoverflow.com

My namedQuery:

@NamedQuery(name = "myUpdate", query = "update User set country = 'EN' where user.id = ?")
In service layer:
Query query = sessionFactory.getCurrentSession.getNamedQuery("myUpdate");
getHibernateTemplate.bulkUpdate(query.getQueryString(), id);
I get an error: Hibernate: update User, set country=EN where id ...

18. Spring HibernateTemplate - is contain / find / get value by class name & non-ID-param    stackoverflow.com

For refrence look http://singgihpraditya.wordpress.com/2010/02/13/spring-3-0-and-hibernate-tutorial-part-1/

@Entity
@Table(name="USER")
public class User implements Serializable {
        private Long id;
    private String name;
private String password;

@Id
@GeneratedValue
@Column(name="USER_ID")
public Long ...

19. how to implement DAO using Spring3 and hibernate3 with HibernateTemplate?    stackoverflow.com

the following code represent a entity beans mappped for Menu Table:

@Entity @Table(name = "menu", catalog = "lcainnodb")
public class Menu implements ...

20. hibernateTemplate, entityInterceptor with state and threading    stackoverflow.com

I have an interceptor for audit-logging that basically sets two fields modified_by and created_by. For example,

public void update(DomainEntity entity, Integer userId) {
    template.update(audited(entity, userId));
}

private DomainEntity audited(DomainEntity entity, ...

21. Consecutive named parameter problems in Hibernate (Spring HibernateTemplate)    stackoverflow.com

I am trying to use named parameters to inject some strings into a query. I am using spring and hibernateTemplate, and and I am fairly new to Hibernate. I have gotten ...

22. Integrate hibernateTemplate with spring and Jsf    stackoverflow.com

I have an error when I integrate JSF, Hibernate, and Spring. I have created some unit tests, and all of them work. I think that the problem is coming from JSF. ...

23. How HibernateTemplate works internally    stackoverflow.com

We are using Spring and Hibernate in our application and use getHibernateTemplate() method for all hibernate stuff. My questions are:

  • How HibernateTemplate internally works?
  • What is the difference between getHibernateTemplate().save(entity) and session.save(entity)? Which ...

24. HibernateTemplate.find returns list of DefaultElement instead of Hibernate Entity    stackoverflow.com


Why does the following part of code produces "java.lang.ClassCastException: org.dom4j.tree.DefaultElement cannot be cast to cc.co.sqeezer.model.Registration"

List list = this.getHibernateTemplate().find(query, parameters); 
if (list.size() > 0) { 
       ...

25. HibernateTemplate    forum.springsource.org

HibernateTemplate Hi I'm trying to use HibernateTemplate. When using .saveOrUpdate(Object) it works, but when using .save(Object) I get an SQLException, saying that the database is in read only mode. This is ...

26. HibernateTemplate and @Version annotation    forum.springsource.org

Hi I would like to kown if the hibernate template or the hibernate session are able to check automaticaly if the version number of an object have been changed in the ...

27. Problem with HibernateTemplate when accessing in different DAO method    forum.springsource.org

Problem with HibernateTemplate session handling when accessing in different DAO. Hi All, I am new to hibernate and spring. Currently i am extending a framework from previous project. Spring 2.5 Hibernate ...

28. ConnectionPool-Leak using HibernateTemplate and C3p0    forum.springsource.org

ConnectionPool-Leak using HibernateTemplate and C3p0 Hi all, im using Hibernate, Spring and Connectionpooling by C3P0 in my project. The following code doesn't release my connection in the Connectionpool: Code: @Override public ...

29. HibernateTemplate find method returns a list of the same data    forum.springsource.org

Feb 9th, 2011, 12:51 PM #1 jaywill View Profile View Forum Posts Private Message Junior Member Join Date Feb 2011 Posts 1 HibernateTemplate find method returns a list of the same ...

30. Problem with HibernateTemplate.load    forum.springsource.org

It turns out that Hibernate can return a proxy if you call Session.load. This means getHibernateTemplate.load can also return a proxy. It is not fun to access that returned proxy since ...

31. Force flush with HibernateTemplate    forum.springsource.org

Hi all, I hav ea small question, I use Spring with Hibernate and for simple methods like load, save, update or delete I use HibernateTemplate but if I check the database ...

32. HibernateTemplate need to import net.sf.hibernate.Hibernate?    forum.springsource.org

HibernateTemplate need to import net.sf.hibernate.Hibernate? Hi ....l have a question. Below is the example from the Spring Reference Documentation Version 1.1 , pg 104 public class ProductDaoImpl extends HibernateDaoSupport implements ProductDao ...

33. HibernateTemplate.load    forum.springsource.org

HibernateTemplate.load Hello All I think within HibernateTemplate has one bug in load method, when I call load method with Composite PrimaryKey in ID, the return object is null, with HibernateObjectRetrievalFailureException Exception. ...

34. hibernateTemplate generates too much sql queries on a find    forum.springsource.org

Hi all, I use the HibernateTemplate to execute a query defined in my hibernate xml definition. The query is about a parent and 2 children collections. Here is the query : ...

35. hibernateTemplate.update query error in spring    forum.springsource.org

I want to update the database from an input form. I am using hibernate template in spring to deal with database transactions. Following i the code where i am encountering an ...

36. HibernateTemplate supports uniqueResult() and query caching?    forum.springsource.org

It would be nice if hibernate template can support retrieving a single persisted object instead of a list. Also, enabling query cache by the template directly (not through its created Query ...

37. hibernateTemplate, entityInterceptor with state and threading    forum.springsource.org

hibernateTemplate, entityInterceptor with state and threading Hello, I have an interceptor for audit-logging that basically sets two fields modified_by and created_by. For example, public void update(DomainEntity entity, Integer userId) { template.update(audited(entity, ...

38. hibernateTemplate Exception    forum.springsource.org

hibernateTemplate Exception Hi, I am new to spring framework, getting following exception when i invoke hibernate from the ApplicationContext.xml Note: previously i had seperate xml file for Hibernate configeration and imported ...

39. hibernateTemplate Exception    forum.springsource.org

hibernateTemplate Exception Hi, I am new to spring framework, getting following exception when i invoke hibernate from the ApplicationContext.xml Note: previously i had seperate xml file for Hibernate configeration and imported ...

40. [Hibernate] updating half an entity with HibernateTemplate    forum.springsource.org

[Hibernate] updating half an entity with HibernateTemplate Hi, Im using Spring 3.0.5 and Hibernate 3 in my project, updating my entities with HibernateTemplate: getHibernateTemplate().saveOrUpdate(myEntityVO); But for updating just some columns of ...

41. Share connection between JdbcTemplate and HibernateTemplate with Atomikos    forum.springsource.org

Share connection between JdbcTemplate and HibernateTemplate with Atomikos When using a mix of JdbcTemplate based DAOs and HibernateTemplate based DAOs, the Spring HibernateTransactionManager allows me to share the connection between those ...

42. HibernateTemplate and EntityInterceptor    forum.springsource.org

HibernateTemplate and EntityInterceptor I'm using springframework 1.1 with hibernate 2.1.6. Using the configuration below, it seems that my HibernateTemplate.saveOrUpdate() is not working with hibernate interceptor, Also hibernate interceptor is not used ...

43. Can't insert data using HibernateTemplate?    forum.springsource.org

Can't insert data using HibernateTemplate? Hi everyone: I come across a odd problem. I want to save a record in databse using this code: Code: public String insertObject(Object o){ return (String)this.getHibernateTemplate().save(o); ...

44. HibernateTemplate.load increments version?    forum.springsource.org

HibernateTemplate.load increments version? I'm working with the hibernate template using Oracle 9i. I have a dao object with code that looks like this: Code: MyObject result = null; try { HibernateTemplate ...

45. HibernateTemplate.findByNamedQuery, unique query names?    forum.springsource.org

HibernateTemplate.findByNamedQuery, unique query names? I quite like the idea of findByNamedQuery, allowing me to put the query in the mapping file (or XDoclet tags) instead of in my DAO. It strikes ...

46. How to map named queries in xml while using hibernateTemplate?    forum.springsource.org

Hi, I am using HibernateTemplate with JPA Annotations. I want to use xml file for named queries and not @NamedQueries on each entity. What would the xml tags look like? As ...

47. What is the difference between using an entitymanager and a hibernatetemplate?    forum.springsource.org

Hi all, Can someone here explain the difference to me? I tried to use entitymanager to persist an object. I used hibernate to work as an adaptor for jpa. But according ...

48. HibernateTemplate strange error    forum.springsource.org

HibernateTemplate strange error I'm having some strange issues with HibernateTemplate, when running the application I get this error Code: SEVERE: Servlet.service() for servlet [appServlet] in context with path [/CourtManagement] threw exception ...

49. HibernateTemplate and database connection problem    forum.springsource.org

Dec 8th, 2004, 01:33 PM #1 alcik View Profile View Forum Posts Private Message Junior Member Join Date Dec 2004 Posts 6 HibernateTemplate and database connection problem Hello Im using HibernateTemplate ...

50. mySQL HibernateTemplate Stored procedure issue    forum.springsource.org

mySQL HibernateTemplate Stored procedure issue there's a lot of examples over the net which describe how to call a stored procedure using Hibernate, however, when using Spring, the picture changes a ...

51. How to do lazy loading with HibernateTemplate    forum.springsource.org

How to do lazy loading with HibernateTemplate I have a table A which contains a collection of table B (one-to-many from A to B). Now in my mapping file for A, ...

52. HibernateTemplate - Id of Object    forum.springsource.org

Hello people! Well, sorry for me english, but I will try (I'm brazilian). I have in Spring API, the method save for insert objects (insert into). This method is child of ...

53. hibernateTemplate.find() throws BadSqlGrammarException    forum.springsource.org

hibernateTemplate.find() throws BadSqlGrammarException I'm having a problem with hibernateTemplate.find(). I've use hibernateTemplate.find() elsewhere in my application with no problems. So it's very frustrating and I've been digging for a while and ...

54. HibernateTemplate suggestion?    forum.springsource.org

HibernateTemplate suggestion? Hi How about adding these methods to HibernateTemplate? public org.hibernate.Transaction getCurrentHibernateTransaction() { SessionFactory sessionFactory = (SessionFactory)getBean("sessionFactory"); SessionHolder sessionHolder = (SessionHolder)TransactionSynchronizationManager.g etResource(sessionFactory); Transaction currentTransaction = null; if (sessionHolder!=null) { currentTransaction ...

55. Hibernate Types in hibernateTemplate methods    forum.springsource.org

Hibernate Types in hibernateTemplate methods Hi, I have just migrated an application from Spring 1.1 and Hibernate 2.1 to Spring 1.2 and Hibernate 3. I'm just starting to use hibernate UserTypes ...

56. HibernateTemplate isn't an interface: huh?    forum.springsource.org

HibernateTemplate isn't an interface: huh? I'm unit testing my application and am using EasyMock. I'd like to mock HibernateTemplate but it turns out that it isn't an interface (which came as ...

57. Problem with HibernateTemplate.iterate(String query)    forum.springsource.org

Problem with HibernateTemplate.iterate(String query) Iterator iterator = getHibernateTemplate().iterate(query); I have exception with trace: net.sf.hibernate.LazyInitializationException: Hibernate lazy instantiation problem at net.sf.hibernate.impl.IteratorImpl.next(IteratorIm pl.java:133) at hiberdata.LinkcheckerImp1.createComboboxFormatsByW hereExpression(LinkcheckerImp1.java:309) at test.hiberdata.LinkcheckerTest.testIsHibernateTeam plateBugOnFormats(LinkcheckerTest.java:116) at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method) ...

58. How to save object by using HibernateTemplate()    forum.springsource.org

How to save object by using HibernateTemplate() HI, I am using SpringFramework, Strurts, Hibernate, Oracle 9i I am having problem with saving objects into database. I am having a problem that ...

59. HibernateTemplate Save does not work    forum.springsource.org

I am using Spring 1.2 and Hibernate 3. My DAOs extend the HibernateTemplate. I am using spring's hibernate3 session factory. I have implemented my DAO as singletons. I am using dependency ...

60. HibernateTemplate + JdbcTemplate + HibernateTransactionMgr    forum.springsource.org

HibernateTemplate + JdbcTemplate + HibernateTransactionMgr Hi, I have a DAO based on HibernateDaoSupport and configured to use a HibernateTransactionMgr. The DAO does not have direct access to the datasource. Now, I ...

61. HibernateTemplate Save does not work(MS SQL)    forum.springsource.org

HibernateTemplate Save does not work(MS SQL) Hi all,I come up with a strange problem. I write a base class with spring and hibernate 3 to persist my data. If I use ...

62. HibernateTemplate.loadAll(Class clazz): failing on Oracle 9i    forum.springsource.org

May 16th, 2005, 01:44 AM #1 cpowell55 View Profile View Forum Posts Private Message Junior Member Join Date May 2005 Posts 2 HibernateTemplate.loadAll(Class clazz): failing on Oracle 9i I'm running a ...

63. Caching queries with HibernateTemplate    forum.springsource.org

Caching queries with HibernateTemplate Hi I am currently working on a project with Spring and Hibernate. In one part i have to do a lot of lookups in the database. If ...

64. Trying to add advice to HibernateTemplate    forum.springsource.org

Trying to add advice to HibernateTemplate I want to test that rollbacks occur correctly within my DAO objects. So I thought I would use AOP and place an advice on HibernateTemplate ...

65. (Hib. 3) HibernateTemplate.load not throwing Exceptions?    forum.springsource.org

(Hib. 3) HibernateTemplate.load not throwing Exceptions? I have a class that subclasses HibernateDaoSupport. When the following fragment inside that class is called and there is no object with the given id, ...

66. hibernateTemplate: when to call in DAO    forum.springsource.org

hibernateTemplate: when to call in DAO Hi guys, just a couple of things i want to clear up regarding this two classes: 1. My DAO extends the HibernateDAOsupport class. If say ...

67. advantages of using hibernatetemplate    forum.springsource.org

68. HibernateTemplate generates incorrect SQL    forum.springsource.org

HibernateTemplate generates incorrect SQL Note: I do have a post on the Hibernate Forum, but I think this is a Spring issue..see below Hibernate version:3.current Spring Version: 1.2.1 Mapping documents: Note: ...

69. HibernateTemplate setParameterList support    forum.springsource.org

Hi, does the HibernateTemplate support the setParameterList method of a Hibernate query for use when there's a parameterised "in" within the query? I couldn't see such support but was wondering if ...

70. Can I use HibernateTemplate.find () if proxy="true"    forum.springsource.org

Can I use HibernateTemplate.find () if proxy="true" Hi All, I have one doubt regarding HibernateTemplate.find() method. This method opens and closes session itself . Now if i used this method to ...

71. HibernateTemplate null ?    forum.springsource.org

HibernateTemplate null ? I have such piece of code : List status = getHibernateTemplate().find( "from UserStatuses us where us.statusData=?",data); if (status == null) { return null; } logger.info("blabla: " + status.get(0).getHibernateTemplate()); ...

72. Why is HibernateTemplate.getSession() protected?    forum.springsource.org

Why is HibernateTemplate.getSession() protected? Hi! Why is HibernateTemplate.getSession() protected? I'm using getHibernateTemplate() method quite often in my projects and I also need to obtain a Query object, which I can create ...

73. what the hibernate3.HibernateTemplate.save return?    forum.springsource.org

in spring.jar, the method, Serializable org.springframework.orm.hibernate3.HibernateTempla te.save(Object arg0) throws DataAccessException what's the result of this method? what's in the "Serializable" class? i am a new one to hibernate. and i want ...

74. understanding HibernateTemplate.load()    forum.springsource.org

understanding HibernateTemplate.load() I'm trying to figure out a test failure as follows; Code: Foo f = new Foo(); Long id = fooService.create(f); fooService.delete(id); fooService.read(id); The read implmentation is simple; Code: public ...

75. HibernateTemplate and limiting result size    forum.springsource.org

How can I limit the resultsize if I'm using a HibernateTemplate? I fount the setMaxResults methods but t seems that there is no setFirstResult method in HibernateTemplate. So how am I ...

76. Does HibernateTemplate support for DOM4J type entity mode?    forum.springsource.org

Does HibernateTemplate support for DOM4J type entity mode? Hi, In Hibernate 3.0, we can map XML elements to POJO and hibernate take care of saving XML element in database table e.g. ...

77. HibernateTemplate method to return Query.uniqueResult()    forum.springsource.org

Is there any method in HibernateTemplate to actually return the Query.uniqueResult() value from passed query HQL and params (possibly)? For example I want to excectute the 'select count(*)' query.

78. extending standart HibernateTemplate with own methods    forum.springsource.org

I wonder if there any common approaches to extend Spring HibernateTemplate so that I can call my methods without using doInHiberante callbacks ? For instance i need to add hibernateTemplate.iterate() method ...

79. easiest way to orderBy 'column' w/ HibernateTemplate calls?    forum.springsource.org

easiest way to orderBy 'column' w/ HibernateTemplate calls? I have the following code that I need to add an orderBy clause to: Code: return getHibernateTemplate() .findByNamedParam("select trx from ConsumerTrx as trx ...

80. How to use HibernateTemplate's finder methods?    forum.springsource.org

I want to use the find method from the HibernateTemplate class, which accepts an Object array as follows: Code: String[] nodes = {"ABC", null, null}; List location = findLocation(nodes); My DAO ...

81. HibernateTemplate and Hibernate3 (org.hibernate)    forum.springsource.org

HibernateTemplate and Hibernate3 (org.hibernate) Hi All, I'm quite new to Spring, and i got an issue i find a little strange. Trying to make my first HibernateDao class going something like ...

82. Can I use HibernateTemplate behind a SLSB/BizPojo in my daoImpl?    forum.springsource.org

Hi I would like to know if it would be worth using HibernateTemplate from within my daoImpl which spring injects into the business pojo (aka abstract SLSB pattern). I am wondering ...

83. HibernateTemplate.findUniqueByNamedQueryAndNamedPa ram    forum.springsource.org

HibernateTemplate.findUniqueByNamedQueryAndNamedPa ram Currently I do: List userList = getHibernateTemplate().findByNamedQueryAndNamedPar am("findUserByUsername", "username", username); and then - throw a runtime exception if the size is more then 1 - return userList[0] if the ...

84. HibernateTemplate and Cache Query    forum.springsource.org

HibernateTemplate and Cache Query I have a few questions: Question #1) Is there a page tat specify all the properties for a HibernateTemplate (xml - bean property) Code:

85. HibernateTemplate and LazyInitializationException    forum.springsource.org

Dec 7th, 2005, 07:18 AM #1 micampe View Profile View Forum Posts Private Message Junior Member Join Date May 2005 Posts 7 HibernateTemplate and LazyInitializationException Hello, I know this is a ...

86. getting a nullpointer with hibernateTemplate    forum.springsource.org

Dec 27th, 2005, 11:27 AM #1 LORDs_diakonos View Profile View Forum Posts Private Message Member Join Date Oct 2005 Posts 79 getting a nullpointer with hibernateTemplate I am not sure what ...

87. hibernateTemplate.save() fails quietly - HELP!    forum.springsource.org

Dec 29th, 2005, 06:00 PM #1 anaik View Profile View Forum Posts Private Message Junior Member Join Date Dec 2005 Posts 2 hibernateTemplate.save() fails quietly - HELP! Hi Folks, I am ...

88. org.hibernate.ObjectNotFoundException not translated by HibernateTemplate?    forum.springsource.org

org.hibernate.ObjectNotFoundException not translated by HibernateTemplate? All, My Dao extends HibernateDaoSupport and has the following method: public PhoneType getById(final Serializable id) { HibernateCallback callback = new HibernateCallback() { public Object doInHibernate(Session session) ...

89. HibernateTemplate problem(spring1.2.4+hibernate3.1)--need help    forum.springsource.org

HibernateTemplate problem(spring1.2.4+hibernate3.1)--need help when I use org.springframework.orm.hibernate3.HibernateTempla te,I meet some problem. my code is: User user = (User)getHibernateTemplate().load(User.class,"001" )//the recode is exist in db and HibernateTemplate is configued in spring xml ...

90. HibernateTemplate findByExample()    forum.springsource.org

Hello Everyone, I'm just trying to use the findByExample() in HibernateTemplate. Setting up a new, empty Customer-Object and adding e.g. Lastname to send it to my CustomerDAO which should retrieve equal ...

91. hibernateTemplate use load or find    forum.springsource.org

hibernateTemplate use load or find I am using the hibernateTemplate in an abstract class that all my daos extend. I have methods in it like find, findall, delete etc... My question ...

92. loadAll() of HibernateTemplate    forum.springsource.org

93. HibernateTemplate - setMaxResults() - when reset?    forum.springsource.org

HibernateTemplate - setMaxResults() - when reset? If the setMaxResults() method is invoked with a value other than zero on org.springframework.orm.hibernate3.HibernateTempla te, will this value be reset back to zero for the ...

94. JdbcTemplate don't see HibernateTemplate result in pooled datasource    forum.springsource.org

JdbcTemplate don't see HibernateTemplate result in pooled datasource My service class use HibernateTemplate and JdbcTemplate in the same transacion, it look like public void doService(){ hibernateTemplate.update(...); hibernateTemplate.flush(); JdbcTemplate.update(...) ; //do update ...

95. HibernateTemplate find problem    forum.springsource.org

I am using HibernateTemplate to try and perform a find on my data objects. The method generates the correct SQL and even returns a List of the correct size, but every ...

96. Exposing hibernateTemplate in AbstractTransactionalDataSourceSpringContext    forum.springsource.org

Exposing hibernateTemplate in AbstractTransactionalDataSourceSpringContext Greetings! I noticed that in AbstractTransactionalDataSourceSpringContextTest jdbcTemplate is exposed. What about hbernateTemplate? How are others getting access to hibernateTemplate in their test code? The following was posted ...

97. HibernateTemplate anomaly    forum.springsource.org

HibernateTemplate anomaly Hi, When I make a call to HibernateTemplate.findByNamedParam and turn on show_sql I see a number of sql 'update' statements whereas I would only expect to see 'selects' getHibernateTemplate().findByNamedParam( ...

98. Hibernate C3P0Pool HibernateTemplate - connection leak    forum.springsource.org

Hibernate C3P0Pool HibernateTemplate - connection leak Hello friends, I implemented DaoFactory pattern in application based on Spring/Hibernate - and C3P0 pool is used. The following code (where JDBC connection is used ...

99. HibernateTemplate improvement using generics    forum.springsource.org

Hi, I've seen a clean approach for persisting with hibernate using generics here: http://www.jroller.com/page/ewentwor..._dao_or_not_to This is not a very special thing but I would like to learn if Spring will follow ...

100. HibernateTemplate.find() returns Set?    forum.springsource.org

Hi! I'm using Java 5.0, Spring and Hibernate. I have a DAO's interface that returns Set, for example: Set getUsers() throws DataAccessException; However the HibernateTemplate.find() returns a List. How can I ...