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 avoid creating a new row if similar row exists?

I need to configure hibernate to avoid creating duplicate rows, (although the row exists it creates a new one, and …

hibernate jakarta-ee hibernate-mapping updates hibernate-annotations
How to map a Map<String,Double>

I tried @ManyToMany(cascade = CascadeType.ALL) Map<String, Double> data = new HashMap<String, Double>(); but it …

java hibernate orm jpa hibernate-annotations
Hibernate annotation or XML configuration

I have started a new project with Hibernate. Is Hibernate annotation a better choice or is Hibernate XML mapping better? …

hibernate hibernate-mapping hibernate-annotations
Looking for a not-deprecated session-factory

I am dealing with hibernate and as I opened my current project I figured out my Session-Factory is deprecated: AnnotationConfiguration …

java hibernate hibernate-annotations sessionfactory sql-server-2012-express
Hibernate Mapping Parent/Child Relationship

I have a database table which contains a simple self parent/child relationship (categories) like this: +------------+----------+--------------------+ | categoryid | …

hibernate hibernate-mapping hibernate-annotations
How do I get Hibernate to call my custom typedef?

I'm trying to define a CompositeUserType to handle a specific type in my JPA/Hibernate app. I have a CompositeUserType …

hibernate annotations typedef hibernate-annotations
JPA/Hibernate DDL generation; CHAR vs. VARCHAR

I have a JPA/Hibernate data model that I am using the Hibernate hbm2ddl tool to generate database DDL. …

java database hibernate jpa hibernate-annotations
Integrity constraint violated just when I commit the transaction

I'm using Hibernate 4.0 Final and ojdbc6 to develop my web application. Everything is ok except when I try to insert …

hibernate annotations hibernate-annotations
Hibernate - IllegalArgumentException occurred calling getter of model

I'm getting this error with my hibernate model, and I can't figure out what's wrong. Tag.java: @Entity @Table(name = "…

java mysql hibernate inheritance hibernate-annotations
Hibernate - difference between annotations and commons-annotations?

To keep it short and sweet: There is hibernate-commons-annotations 4.1.0-Final and hibernate-annotations 3.5.6-Final. I'm a nub, what's the difference between …

java hibernate orm dao hibernate-annotations