Hibernate
hibernate - mapping PK to 2 colums
i search the web for answer, but all the answers refer to composite id PK. i want two map two columns of type long to PK.[详细]
2023-04-11 22:48 分类:问答I am receiving HibernateException "No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here"
Despite the bunch of similar questions here nothing seems to be usefull to me. I get the exception when I call sessionFactory.getCurrentSession().createQuery(\"from Strings\").list();[详细]
2023-04-11 22:38 分类:问答When using Hibernate ORM should i model first a class diagram or DB diagram?
i\'m fairly new to Java and Hibernate. At work we are developing a medium sized, formprocessing J2EE web application using Spring, Hibernate, JBOSS and so on. What is 开发者_开发知识库the correct appr[详细]
2023-04-11 20:53 分类:问答Hibernate querying - issue with resolving property
Hey I have a small problem doing a query: the query line is: Query query = session.createQuery(\"from Recipe r where r.name=\'\" + searchString + \"\' and r.ownerid=\" + userId );[详细]
2023-04-11 20:43 分类:问答java.lang.ClassCastException: org.hibernate.hql.ast.tree.SqlNode cannot be cast to org.hibernate.hql.ast.tree.FromReferenceNode
Im trying to update a record with a HQL query but I am getting a CastException. If anyone could help me out I would really appreciate it.[详细]
2023-04-11 20:21 分类:问答Access two services methods from one controller in hibernate and Spring MVC
I am stuck with access 2 services methods from one controller. I want to create a Task but same time I want to create new Role and assign its auto increment id to Task\'s roleId(foreign key). It is a[详细]
2023-04-11 19:41 分类:问答Java Hibernate + Oracle 11.2 Locking
I need to synchronize my user table with repository(the other DB) during application startup. I have two Tomcat nodes with Apache mod_jk. So when I restart both of them I make double inserts and doubl[详细]
2023-04-11 19:39 分类:问答Spring MVC 3 Hibernate JPA Annotations onetomany and manytoone relationships cascade delete
I have the following entities and I have to delete the ServiceRegistration and ServiceChannels entries when I delete the ServiceRegistration record. But now, if I delete a record in serviceregistratio[详细]
2023-04-11 18:02 分类:问答null out all references to a removed entity
I have an entity Client and an entity Session.Client has a field currentSession which references a Session entity.At some point, I end up deleting sessions, sometimes this is the client\'s current ses[详细]
2023-04-11 17:55 分类:问答Inner transaction changes not visible to outer transaction
I\'m using Spring3+JPA+Hibernate. I\'ve tried to keep structure of the example similar to my actual code structure. Please scroll to the bottom for the actual question. Zipped maven project can be dow[详细]
2023-04-11 17:54 分类:问答