Top "Hibernate-annotations" questions

Hibernate Annotations provide an alternative method of supplying metadata which maps Java objects to the database tables they represent.

how to make two column as a primary key in hibernate annotation class

This is my annotation class and i want userId and groupId column both as primary key. I have found more …

java hibernate composite-primary-key hibernate-annotations
What is a IncompatibleClassChangeError exception in Java?

i am working on a small application and I am trying to use Hibernate Annotations to map my entities. I …

java hibernate hibernate-annotations
hibernate one to many using a join table, and hibernate annotations

I want do a one-to-many relationship between two tables using a join table. This is why I want to use …

hibernate annotations one-to-many hibernate-annotations
How to make this select * from two joined tables query in HQL form?

I had two hibernate entity here with annotation: @Entity @Table(name = "CLIENT") public class Client { private Long pkClient; private String …

java hibernate hql hibernate-annotations named-query
Hibernate Mapping Package

I'm using Hibernate Annotations. In all my model classes I annotate like this: @Entity @Table public class SomeModelClass { // } My hibernate.…

java hibernate hibernate-annotations
Doesn't work setting default value of property in Hibernate

I have a boolean property in my entity. Here's my annotations for it: @Column(name = "IS_ACTIVE", nullable = false, columnDefinition="…

java hibernate jpa hibernate-mapping hibernate-annotations
java.lang.NoClassDefFoundError: org/apache/commons/pool/impl/GenericObjectPool

I'm trying to configure org.apache.commons.dbcp.BasicDataSource as bean in web.xml under a tomcat project using tomcat 6 …

java spring-mvc spring-transactions hibernate-annotations
a different object with the same identifier value was already associated with the session error on save

Possible Duplicate: Spring + Hibernate : a different object with the same identifier value was already associated with the session I've been …

hibernate spring annotations hibernate-annotations
hibernate two tables per one entity

I have one entity - User. It is described by User.class. Hibernate creates one table per entity, so when …

java spring hibernate sqlite hibernate-annotations