Corrections... i am using it like-
criteria.getTasks().clear();
criteriaDao.flush();
criteria.getTasks().addAll(tasks);
My bad for ignoring that comment...
Type: Posts; User: rakesh_sinha; Keyword(s):
Corrections... i am using it like-
criteria.getTasks().clear();
criteriaDao.flush();
criteria.getTasks().addAll(tasks);
My bad for ignoring that comment...
I could get this fixed by adding a line between:
for (Task task : existingTasks) {
task.setCriteria(null);
}
=> session.flush();
criteria.setTasks(tasks);
This makes...
Hi All,
I am stuck at a point where i am trying to update a @OneToMany mapping.
Problem:
I have 2 entities: Criteria and Tasks. A criteria can contain multiple tasks.
class Criteria {
...
I am using spring/hibernate and trying to setup junit using HSQL DB. I ran into an issue when some of the oracle specific syntax are not recognized in HSQL. I know the solution is to set property...
See the post: http://springwstemplatejax2bxmlrootmissing.blogspot.com/
If you are using SpringWebService template and getting error "missing an @XmlRootElement annotation" from the generated JAXB objects. Please check out here how I could fix it:...
I doubt if you are using classes of hibernate2 and hibernate2. Can you plz verify in your hibernate configurations that you did not use *hibernate.* as it looks like you intend to use hibernate3. If...
Can you please post your web.xml, my guess is probably the applicationContext is not initialized before IndexController is initialized.
Do you initialize ContextLoaderListener through your web.xml.?
Please make sure you have jta.jar in your classpath.
Thanks for the reply. I just read it, earlier i didnt understand spring transaction management properly.
Any help is appreciated.!
Hi,
There is no direct recommendation for using hibernate bottom-up or top-down, it all depends and varies according to the project. If you have an existing Db schema, you would always like to...
Hi,
I need a help regarding managing transaction. I am using spring/hibernate. I have following layers-
* Web Service Endpoint
* Business Service
* DAO
I extend HibernateDaoSupport in my...