HibernateTemplate 2 « JPA « Spring Q&A





1. HibernateTemplate setCacheQueries    forum.springsource.org

Hi, I'm using the HibernateDAOSupport class to group queries related to the same table, however whilst some of these queries can be cached, others should not. It seems that the HibernateTemplate.setCacheQueries() ...

2. HibernateTemplate.load() doesn't work    forum.springsource.org

HibernateTemplate.load() doesn't work I'm experiencing strange behaviour when using the HibernateTemplate.load(Object, Serializable) method to load a persisted object from the database. Offending Code: Game game = (Game) getHibernateTemplate().load(Game.class, id); I get ...

3. [hibernate][spring]strange bug HibernateTemplate()    forum.springsource.org

Hello I use Spring, hibernate and DAOTest and a i have a strange error I do Code: List l = getHibernateTemplate().find(MY_QUERY); my query returns the good number of elements in the ...

4. hibernateTemplate.find() parameterized query breaks on moving from mysql4 to mysql5    forum.springsource.org

hibernateTemplate.find() parameterized query breaks on moving from mysql4 to mysql5 We have the relatively simple query List countyList = getHibernateTemplate().find(" from County county where ? in elements(county.zipCodeSet)", zipCode); working. It returns ...

5. HibernateTemplate lost some methods in 2.0-M3?    forum.springsource.org

Hi, I was just upgrading our persistence layer from 1.2.6 to 2.0 M3. I am now missing the following method? save(java.lang.Object, java.io.Serializable) http://www.springframework.org/docs/....Serializable)) Is this temporary? Regards, Damon

6. HibernateTemplate: one or many    forum.springsource.org

HibernateTemplate: one or many A co-worker and I are in disagreement on when to create the HibernateTemplate object in the base DAO class. The docs and examples have it two different ...

7. HibernateTemplate.get throws InvalidDataAccessApiUsageException on get()    forum.springsource.org

HibernateTemplate.get throws InvalidDataAccessApiUsageException on get() I have some mapped 1:M associations that use lazy fetching of the collections when getting a parent object, but eager fetching of the parent when getting ...

8. Sharing the connection between JdbcTemplate and HibernateTemplate    forum.springsource.org

Sharing the connection between JdbcTemplate and HibernateTemplate I'm using JdbcTemplate and HibernateTemplate using a JNDI DataSource, and JtaTransactionManager with JBoss. Now I've encountered a situation where I perform a jdbc update ...

9. hibernateTemplate and hibernate3    forum.springsource.org

hibernateTemplate and hibernate3 umm, jboss support says: << If you plan to use the Spring Hibernate template, then don't. The Spring template were useful with Hibernate 2.x because of some mistakes ...





10. to HibernateTemplate or not to HibernateTemplate    forum.springsource.org

to HibernateTemplate or not to HibernateTemplate I've used HibernateTemplate in the past and I didn't think there was a problem, but lately I've been reading a lot of things against using ...

11. DefaultAdvisorAutoProxyCreator does not create a proper proxy for HibernateTemplate    forum.springsource.org

DefaultAdvisorAutoProxyCreator does not create a proper proxy for HibernateTemplate I am trying to apply DebugInterceptor for all the classes in my application, so I chose to use DefaultAdvisorAutoProxyCreator along with DefaultPointcutAdvisor. ...

12. AOP, multiple advisors and the HibernateTemplate    forum.springsource.org

Jun 13th, 2006, 08:08 PM #1 dmunguia View Profile View Forum Posts Private Message Junior Member Join Date Jun 2006 Posts 12 AOP, multiple advisors and the HibernateTemplate Hi, My application ...

13. strange hibernateTemplate behavior    forum.springsource.org

strange hibernateTemplate behavior I am using hibernateTemplate for my dao layer. I've used it before and I didn't have any problems with it while using postgresql. I am currently using DB2 ...

14. HibernateTemplate flush behavior    forum.springsource.org

HibernateTemplate flush behavior [Spring 1.2.4/Hibernate 3.0.5] Under load we find excessive CPU usage (~90%) in conjunction with poor application performance and have determined redundant Hibernate session flushing as the cause and ...

15. HibernateTemplate in multithreaded app.    forum.springsource.org

HibernateTemplate in multithreaded app. Hello All, We are using Spring and Hibernate in multithreaded server application. There are cases when object fetched from DB in one thread and update is in ...

16. using hibernatetemplate    forum.springsource.org

using hibernatetemplate Using Hibernate3 with spring. following service methd public MagTitle getMagtitle(short id) { return (MagTitle) getHibernateTemplate.load(MagTitle.class,new Short(id); } Following error is shown 2006-06-23 01:56:12 StandardContext[/xlibrary]Loading WebApplicationContext for Spring FrameworkServlet 'xlibrary' ...





17. HibernateTemplate.load    forum.springsource.org

HibernateTemplate.load Hi, I've seen more or less similar posts around on this forum. Yet I would like to add one thing to the following 'problem'. In Hibernate 3 by default association ...

18. Object loading in GroupBy Clause (hibernateTemplate)    forum.springsource.org

Object loading in GroupBy Clause (hibernateTemplate) hi, Is it possible to load objects mapped as "many-to-one" in config. file in select statement? I've a query like below: select r.project,r.controlArea,sum(r.time1) from Report ...

19. help using HibernateTemplate to save objects    forum.springsource.org

help using HibernateTemplate to save objects I have an MessageDaoImpl class that extends HibernateDaoSupport that simply inserts Message onject in a table (mysql). Here's part of the simple code: public void ...

20. ClassCastException with HibernateTemplate.findByNamedQuery()    forum.springsource.org

ClassCastException with HibernateTemplate.findByNamedQuery() Hi, I got problem with HibernateTemplate.findByNamedQuery() which resulted in ClassCastException for a primitive parameter. Basically I have a "status" attribute which mapped to "character" type, and I setup ...

21. HibernateTemplate problem    forum.springsource.org

i am trying to retrieve an object from the hibernate table. I give in the primary key, ie the unique EntityId as the parameter but when i retrive the object i ...

22. "type" removed from hibernate3 version of HibernateTemplate.findByNamedQuery?    forum.springsource.org

"type" removed from hibernate3 version of HibernateTemplate.findByNamedQuery? I'm using Spring 1.2.6 along with Hibernate 3.1 I need to execute a named query which has an "in" clause : from ClassA where ...

23. Rationale for "HibernateTemplate is evil" - easy fix!    forum.springsource.org

This is the first time I read a justification for the "HibernateTemplate is evil" accusation that's common in the JBoss camp, and it turns out it's really easy to fix! It's ...

24. Why would I use Jpa/HibernateTemplate?    forum.springsource.org

Why would I use Jpa/HibernateTemplate? Once again, there's a heated "Spring vs Hibernate" discussion going on in the comments section of a recent Hibernate blog. On one side, some developers support ...

25. HibernateTemplate    forum.springsource.org

HibernateTemplate I have a list of objects. Each object has an (Long id, and a Integer sortOrder). When I add these objects, the id, is primary key and hibernate assigns, and ...

26. HibernateTemplate.findByExample partial matching    forum.springsource.org

HibernateTemplate.findByExample partial matching Hello everyone, I have a search page for one of by business objects. The controller binds all the fields to an instance of my business object, and leaves ...

27. Batch inserts with HibernateTemplate    forum.springsource.org

Batch inserts with HibernateTemplate Hi there, I'm in an optimization phase on several web applications, all using Spring + Hibernate via HibernateDaoSupport and HibernateTemplate. Reading about Hibernate's doc on Batch Processing, ...

28. Read-only flag in HibernateTemplate?    forum.springsource.org

The MySQL's ReplicationConnection describe that we can read from the slave databases by setting the read-only flag. When using HibernateTemplate, how do we set this read-only flag? Or is it implicitly ...

29. HibernateTemplate replicate()    forum.springsource.org

HibernateTemplate replicate() Hi, I have a requirement to move database records from one DB to another DB based on a criteria. In doing so, I need to copy all child object ...

30. Problem in using HibernateTemplate.findByNamedQuery()    forum.springsource.org

Problem in using HibernateTemplate.findByNamedQuery() I am facing an issue in Hibernate which is on HibernateTemplate.findByNamedQuery() We have configured the query in our hbm as,

31. Hibernate in-clause + HibernateTemplate    forum.springsource.org

Hi, I want to do something like: getHibernateTemplate().find("from Boo where id in ?",list); where list is dynamic ArrayList, array, Set, Map, etc. Could this be done with Spring template? I don't ...

32. HibernateTemplate merge with long-id joined-subclass    forum.springsource.org

Sep 18th, 2006, 10:32 PM #1 twatanabe View Profile View Forum Posts Private Message Junior Member Join Date Sep 2006 Posts 3 HibernateTemplate merge with long-id joined-subclass Hi, I use Spring ...

33. HibernateTemplate and ScrollableResults: closed result set error    forum.springsource.org

HibernateTemplate and ScrollableResults: closed result set error i want to export big list to excel. so i produce ScrollableResult inside HibernateCallback Session is opened using org.springframework.orm.hibernate3.support.OpenSes sionInViewFilter In my controller i ...

34. Retrieving unique objects via HibernateTemplate    forum.springsource.org

35. Using HibernateTemplate, can't perform simple query    forum.springsource.org

Using HibernateTemplate, can't perform simple query I want to load up a Person object which has a certain id value. My inital attempts to do this have failed. I have found ...

36. HibernateTemplate + select count??    forum.springsource.org

Hi all, Is there a way to use getHibernateTemplate() api, to simulate the behaviour of a basic sql "select count" query without loading objects (I mean without reading the size of ...

37. NativeSQL queries with HibernateTemplate results results in Invalid column name    forum.springsource.org

Oct 27th, 2006, 04:08 PM #1 mail2bansi View Profile View Forum Posts Private Message Senior Member Join Date May 2006 Posts 142 NativeSQL queries with HibernateTemplate results results in Invalid column ...

38. Oracle stored procedures returning a Cursor with HibernateTemplate    forum.springsource.org

Oracle stored procedures returning a Cursor with HibernateTemplate Hi, I've been searching the forum, but can't seem to find one piece of the puzzle. I have an Oracle stored procedure (not ...

39. ClassCastException with HibernateTemplate    forum.springsource.org

Nov 14th, 2006, 08:08 AM #1 Arthur Noseda View Profile View Forum Posts Private Message Junior Member Join Date Nov 2006 Posts 5 ClassCastException with HibernateTemplate Hello everybody, I have a ...

40. ClassCastException while using HibernateTemplate's findByNamedQuery    forum.springsource.org

ClassCastException while using HibernateTemplate's findByNamedQuery I am getting ClassCastException when I try to cast the list element to my class defined in hbm.xml. Here is the line where I get ClassCastException ...

41. possible bug in HibernateTemplate's bulkUpdate method.    forum.springsource.org

possible bug in HibernateTemplate's bulkUpdate method. Hi all, I am using spring 2.0.1 with hibernate 3.2.1 . I am trying to use bulkUpdate method, check out the code below: Code: getHibernateTemplate().bulkUpdate( ...

42. HibernateTemplate / Hibernate 3 : DataAccessException ??    forum.springsource.org

HibernateTemplate / Hibernate 3 : DataAccessException ?? Hi, I suppose this has been already discussed, but I haven't found precise post on this. Environment :Jdk 1.5, Spring 2.0.1, Hibernate 3.2.1.ga, Tomcat ...

43. ClassCastException getting an object using hibernateTemplate    forum.springsource.org

Dec 12th, 2006, 10:04 PM #1 Srivatsan View Profile View Forum Posts Private Message Junior Member Join Date Dec 2006 Posts 1 ClassCastException getting an object using hibernateTemplate Getting a weird ...

44. HibernateTemplate Update    forum.springsource.org

HibernateTemplate Update Hi, i have a class Students which has one-to-many relationship with Subjects. when i do a HibernateTemplate.update, it works fine for the first time. when modify something on the ...

45. LazyInitializationException with HibernateTemplate    forum.springsource.org

LazyInitializationException with HibernateTemplate Hi everybody, I 'm trying to implement Hibernate3 using Spring 2.0. I'd like to use the HibernateTemplate class to handle my connections. Whenever I try to execute one ...

46. hibernatetemplate.find problem    forum.springsource.org

hibernatetemplate.find problem Hi I've in my controller: Code: public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception { if (logger.isDebugEnabled()) { logger.debug("CuentasController - handleRequest - start"); } Map model = new HashMap(); ...

47. Insertion problems with hibernateTemplate.save(Object obj)    forum.springsource.org

Insertion problems with hibernateTemplate.save(Object obj) I have a Simple question for the Gurus I have two associated objects i.e. DeviceType and Role. The relationship is uni-directional and Many-To-Many. That means DeviceType ...

48. Unable to Persist Associated Objects using hibernateTemplate    forum.springsource.org

Unable to Persist Associated Objects using hibernateTemplate I am having problems persisting associated objects to database Here is the situation - I have 2 associated objects viz. DeviceType and Role. That ...

49. Why don't HibernateTemplate.find() methods return parameterizable List?    forum.springsource.org

If you would have read the Spring Reference Guide you would have noticed that Spring is backwards compatible to JDK1.3, generics where introduced in JDK1.5. So I think parameterizable list are ...

50. HibernateTemplate.save() works BUT no data in database    forum.springsource.org

HibernateTemplate.save() works BUT no data in database Hi, I have an app which uses JSF 1.1 + Spring 2.0.2 + Hibernate 3 along with a PostgreSQL 8.2 database. When I use ...

51. hibernateTemplate.clear working, not flush    forum.springsource.org

hibernateTemplate.clear working, not flush Hi Guys, This is sort of an open ended question, not really a problem. I'm finding in my integration tests for my hibernate daos, that hibernateTemplate.flush() doesn't ...

52. How to use HibernateTemplate and HQL update query ?    forum.springsource.org

Hi I would like to do a HQL update query using HibernateTemplate but I don't find how to create and launch my query. I've looked at the API (http://static.springframework.org/sp...api/index.html) but I ...

53. HibernateTemplate best practices    forum.springsource.org

NOTE: As of Hibernate 3.0.1, transactional Hibernate access code can also be coded in plain Hibernate style. Hence, for newly started projects, consider adopting the standard Hibernate3 style of coding data ...

54. Problem with ticks in the request..should I be using HibernateTemplate?    forum.springsource.org

Problem with ticks in the request..should I be using HibernateTemplate? I posted this question over in the Hibernate forums (http://forum.hibernate.org/viewtopic...46653#2346653), but after getting kicked squarely in the nutz (excuse my *french*) ...

55. HibernateTemplate.deleteAll issue    forum.springsource.org

HibernateTemplate.deleteAll issue hi all, i am using Hibernate via Spring framework.... i have an object which contains a 1-to-many associations with a second one, and the 1-to-many is lazy="true" here's detail ...

56. Execute SQL statements through HibernateTemplate    forum.springsource.org

Execute SQL statements through HibernateTemplate Hi guys I'd like to execute SQL statement through hibernatetemplate because some of my business objects are not aware of all their fields for confidentiality purposes.... ...

57. JdbcTemplate and HibernateTemplate not interfaces    forum.springsource.org

JdbcTemplate and HibernateTemplate not interfaces Is there a reason for JdbcTemplate and HibernateTemplate not baing an interface? I am mocking a service which uses a HibernateTemplate, but I am unable to ...

58. Using jdbctemplate and hibernatetemplate together    forum.springsource.org

Using jdbctemplate and hibernatetemplate together Hi All, I have been looking at the forums for this. I noticed that jdbctemplate needs a datasource but in my application, I use the sessionfactory ...

59. HibernateTemplate.findByNamedParam: ClassCastException    forum.springsource.org

HibernateTemplate.findByNamedParam: ClassCastException Hi *, after switching from spring 1.2.8 to spring 2.0.4 the following code throws a class cast exception: Code: getHibernateTemplate().findByNamedParam( "from Ersatztarif as e where e.vonKM <= :entfernung order ...

60. HibernateTemplate To Cache Query Results    forum.springsource.org

May 8th, 2007, 04:54 PM #1 mail2bansi View Profile View Forum Posts Private Message Senior Member Join Date May 2006 Posts 142 HibernateTemplate To Cache Query Results I have a h:selectOneMenu ...

61. Does HibernateTemplate.save() hit the database    forum.springsource.org

Hi Everybody. does the HibernateTemplate.save() hit the database.? Transaction Manager in Place. What I want to know is that if when I call HibernateTemplate.save() a SQL command is prepared and send ...

62. Problem with HibernateTemplate's find method    forum.springsource.org

Problem with HibernateTemplate's find method Hi all, I am using Hibernate with spring.I have got a table that has person_number as the id and person_status and effective_date as other columns.I can ...

63. Irksome newbie question re:HibernateTemplate.find    forum.springsource.org

Irksome newbie question re:HibernateTemplate.find Hi, I have searched for a bit on google and in the forums, but can't seem to find a solution to what I would have thought was ...

64. Problem in getting HibernateTemplate    forum.springsource.org

Problem in getting HibernateTemplate Hello Guys, I was configured the hibernate mapping details in spring configuration file,but in the DAO class iam getting the HibernateTemplate as null. the source is like ...

65. How to enable ignorecase in spring hibernateTemplate?    forum.springsource.org

How to enable ignorecase in spring hibernateTemplate? Hi guys, I am usingSpring + Hibernate. My HQL is like below: select obj from Transport obj where ((obj.manufacturer like LOWER((:manufacturer)) or obj.manufacturer is ...

66. Serious performance issue with hibernateTemplate.findByNamedParam    forum.springsource.org

Jun 9th, 2007, 09:39 AM #1 dcoales View Profile View Forum Posts Private Message Junior Member Join Date Jun 2006 Posts 19 Serious performance issue with hibernateTemplate.findByNamedParam Hi, I have a ...

67. Two insertions per one save hibernateTemplate    forum.springsource.org

Jun 20th, 2007, 09:31 AM #1 CuriousHARD View Profile View Forum Posts Private Message Member Join Date May 2007 Posts 78 Two insertions per one save hibernateTemplate hi i m facing ...

68. HibernateTemplate loadAll returns duplicates    forum.springsource.org

HibernateTemplate loadAll returns duplicates Hi, Environment: Spring 2.0.6, Hibernate 3.2.2, Oracle 10.2.0.1.0, Standalone I am using HibernateTemplate to load all persisted objects of a class that has a collection of enums. ...

69. Update Associated Objects - HibernateTemplate    forum.springsource.org

Update Associated Objects - HibernateTemplate Wondering how update works in case of associated objects. Let say if Parent object ( in my case DeviceType) is associated with 3 records of Child ...

70. JdbcTemplate or HibernateTemplate or Hibernate API    forum.springsource.org

JdbcTemplate or HibernateTemplate or Hibernate API Hi all, we are going to start a new project, about 10-15 tables, swing based app. in term of DAO layer, what the advantages of ...

71. HibernateTemplate findByNamedQuery : Native SQL Query    forum.springsource.org

I am using hibernateTemplate findByNamedQuery method to load the object. This object has duplicate records . Is their a way that i can load the object without duplicate records.??? Here is ...

72. So should you still use Spring's HibernateTemplate and/or JpaTemplate??    forum.springsource.org

Quick question about this article: http://blog.interface21.com/main/200...r-jpatemplate/ The author says this in the 3rd paragraph in the "Going template-less" section: Now, as I said before, because of a small change in Hibernate ...

73. Get a java.lang.NoSuchMethodError when tried to use HibernateTemplate.find() method    forum.springsource.org

Get a java.lang.NoSuchMethodError when tried to use HibernateTemplate.find() method hi, all, I am new here, i am writing a method in which I use HibernateTemplate.find(sqlString) to access data from database, but ...

74. hibernateTemplate findByExample    forum.springsource.org

hibernateTemplate findByExample Hi everyone! Can anyone tell my how to use hibernateTemplate.findByExample(Object) with associated objects? For Example : I have two entities Car { ... Engine engine; } Engine { ... ...

75. Equivalent HibernateTemplate.loadAll(entityClass) method in JpaTemplate/Callback?    forum.springsource.org

Equivalent HibernateTemplate.loadAll(entityClass) method in JpaTemplate/Callback? Hi, I am trying to return a list of all domain objects of a specific class using the JpaTemplate. I don't mind using a JpaCallback to ...

76. HibernateTemplate not reading table    forum.springsource.org

HibernateTemplate not reading table Hi, I am using the HibernateTemplate in my web app to write an object to a table and read it again later. The object is mapped correctly ...

77. HibernateTemplate().update question    forum.springsource.org

I want to use following SQL by HibernateTemplate().update: update mytable1,mytable2 set mytable1.name='Jack',mytable2.salary='999' where mytable1.id='1' and mytable2.work='true' and mytable1.id=mytable2.id How to realize it by using HibernateTemplate().update? Thanks in advance!

78. HibernateTemplate method matched to CreateQuery    forum.springsource.org

Code: Session session = getHibernateTemplate().getSessionFactory().getCurrentSession(); Query query = session.createQuery() query.setParameter("", ); I would do it this way. Actually I keep all my queries in the hbm file and ...

79. seeking deep understanding of hibernatetemplate; execute vs methods like find...    forum.springsource.org

Hi all Im seeking a deeper understanding of HibernateTemplate. At my current gig we have a persistence expert who seems to favor using HibernateCallback objects within the hibernatetemplate.execute method instead of ...

80. HibernateTemplate loadAll() fails    forum.springsource.org

Sep 6th, 2007, 10:02 AM #1 mesquite View Profile View Forum Posts Private Message Junior Member Join Date Mar 2007 Posts 7 HibernateTemplate loadAll() fails Hi, I have an issue with ...

81. HibernateTemplate().find(string,object)    forum.springsource.org

HibernateTemplate().find(string,object) Is there a generic way to do searches with an object instead of specifying values as parameters? Example: When searching an object (or objects), instead of specifying an ID or ...

82. HibernateTemplate evict() vs. JpaTemplate    forum.springsource.org

Hi. Do you know something about evict method in HibernateTemplate vs. JpaTemplate? I translate my class to use JpaTemplate, but I don't know, how translate evict() method. Exist some way, how ...

83. hibernateTemplate and null parameters    forum.springsource.org

hibernateTemplate and null parameters i am using this method in my DAO Code: @SuppressWarnings("unchecked") public List findDocumentsForUserByParent(User user, Document parent) { return getHibernateTemplate().find("from Document document where document.owner = ? and document.parent ...

84. HibernateTemplate load() weirdness    forum.springsource.org

HibernateTemplate load() weirdness I am trying to load a 'Document' with an id that does not exist. The problem is, the load function doesn't give any error, although the docs say ...

85. org.hibernate.AssertionFailure when calling save method on HibernateTemplate    forum.springsource.org

Hi, I am using HibernateTemplate. I have unique constraint on one of my entities. When trying to insert duplicate, I get org.hibernate.AssertionFailure. Should't Hibernate template wrap this with DataIntegrityViolationException? I am ...

86. HibernateTemplate updates shallow on clone object    forum.springsource.org

HibernateTemplate updates shallow on clone object Hello, I'm using Spring+hibernate. I want to keep a copy of a certain object for 'rollback' purposes. The behavior I want is be able to ...

87. call to HibernateTemplate.flush() doesn't return after inserting large blobs    forum.springsource.org

call to HibernateTemplate.flush() doesn't return after inserting large blobs JSF application has a very basic data access layer: (Spring 1.2, Hibernate 3) - OpenSessionInViewFilter has session.setFlushMode(FlushMode.AUTO); - All common operations are ...

88. HibernateTemplate.save problem    forum.springsource.org

HibernateTemplate.save problem Hello Tigers.... I am getting some issue while Integrating Spring with Hibernate..... when i'm calling hibernate,save POJO class Code: @Entity @AccessType("property") @Table (name="Appointment") public class Appointment implements Serializable { ...

89. HibernateTemplate and fetch size    forum.springsource.org

HibernateTemplate and fetch size Hi, im using springs HibernateTemplate to call a preparedstatement. It works fine getting the result and mapping it to my pojo. But i now like to set ...

90. HibernateTemplate Question    forum.springsource.org

HibernateTemplate Question Hi, I'm using Spring 2.0.7 and Hibernate 3.2.5. I'm fairly new to Spring and Hibernate. I created a Hibernate mapping file (see below), which defines a Set called collectieveRegelingJaren. ...

91. about extending spring's HibernateTemplate    forum.springsource.org

about extending spring's HibernateTemplate Hi guys: my program has a requirement that paging DB records to list on browser. spring's HibernateTemplate doesn't support setFirstResult() like hibernate's query does. it only supports ...

92. A problem of HibernateTemplate.load    forum.springsource.org

I am a beginner of spring. When i use the method load() and get a result, it is all ok here. but when i use the setters of the result object, ...

93. HibernateTemplate    forum.springsource.org

Do you specifically need to save the entity only if it doesn't exist in advance in the database? In that case, you need to first check if the entity exists by ...

94. Returning duplicate results with HibernateTemplate    forum.springsource.org

Returning duplicate results with HibernateTemplate Hi. I have a web-app in which users choose an object to work with, and assign it to themselves (preventing other users from working with that ...

95. BatchUpdateException when calling HibernateTemplate.update()    forum.springsource.org

BatchUpdateException when calling HibernateTemplate.update() Hello, In my dao layer, I have two methods which load and update records in a user table. The user table is mapped one to one, and ...

96. HibernateTemplate + select count(p.name) + group by    forum.springsource.org

Hi all, Please go through the link below http://forum.springframework.org/showthread.php?t=30089 In my case, the query is Code: select count(p.name) from Person p group by p.name My query: Is there any method in ...

97. HibernateTemplate + select count(p.name) + group by    forum.springsource.org

Hi all, Please go through the link below http://forum.springframework.org/showthread.php?t=30089 In my case, the query is Code: select count(p.name) from Person p group by p.name My query: Is there any method in ...

98. HibernateTemplate: unnecessary SELECT statement    forum.springsource.org

HibernateTemplate: unnecessary SELECT statement My DAO uses an HibernateTemplate to access the DB. The following method adds multiple Transactions: Code: public void saveTransactions(Collection transactions) { getHibernateTemplate().saveOrUpdateAll(transactions); } These are the queries ...

99. HibernateTemplate is null!    forum.springsource.org

Apr 3rd, 2008, 11:30 PM #1 mbabauer View Profile View Forum Posts Private Message Member Join Date Feb 2006 Posts 88 HibernateTemplate is null! I would say that I am fairly ...

100. HibernateTemplate and lazy loading    forum.springsource.org

HibernateTemplate and lazy loading Hi, Here's the situation: I've got two tables called Events and Providers in a many-to-one relationship (an Event has a providerId FK). Besides a providerId PK, a ...