Historically, Hibernate facilitated the storage and retrieval of Java domain objects via Object/Relational Mapping. Today, Hibernate is a collection of related projects enabling developers to utilize POJO-style domain models in their applications in ways extending well beyond Object/Relational ...

learn more… | top users | synonyms

3
votes
1answer
73 views

Loading, computation and writing 500.000 rows in database

first let me explain what I am trying to achieve here : I am supposed to compute some results, using data from several tables, filtered by a run_id. One of these tables has about 500.000 rows per ...
7
votes
1answer
303 views

NHibernate select with Query Over optimization for user roles base case

I have a complicated select procedure that I solved with a 5 query transaction, so I am posting it here to get suggestions on how I can shorten it up a bit. I am hoping that someone can help me make ...
2
votes
2answers
104 views

A query on Hibernate database design

I am writing a simple web application where I have a User entity and set of pre-defined questions to be answered by the User. The answers provided by the users for these questions would need to be ...
1
vote
1answer
67 views
2
votes
1answer
428 views

Using generic methods for basic crud operations

Regarding re-usability, is this OK? What might go wrong? What would be a better design? Performance-related issues and any other comments are welcome. ...
2
votes
1answer
289 views

Managing Data access layer exceptions

I am developing a webapp using Spring MVC + Hibernate. I created a GenericDao class that implements basic data access methods, to be extended by all my concrete daos in the app. What I want advice or ...
1
vote
1answer
679 views

A database schema for an online rental store [closed]

I am creating an online rental store using the following: JSF 2.1 Hibernate 4.2 Spring 3.2 MySQL 5.5 Below is my database schema design: Link in case image not displayed. The rental user has ...
2
votes
1answer
55 views

ORM Entity with many similar relationships

To provide some background context, I'm implementing a web-based solution (Java, Spring, Hibernate) that allows the creation/authoring of task-centric workflow documents. Basically a workflow ...
1
vote
2answers
115 views
2
votes
1answer
539 views

JPA connection : is this code is efficient enough

By reading some tutorial i have written some peace of code to do crud operation . I just want to know how is this code is efficient or how can i make better ? Here i am giving code of 3 class 1. ...
3
votes
1answer
321 views

Any problems in using hibernate's session.connection() to run native sql

In my project, they use Hibernate's session the below mentioned way and then save entity objects with in a transaction. ...
4
votes
1answer
2k views

Many-to-many hibernate mapping if link table is having extra columns mappings

I have many-to-many mapping with extra columns in the join table. The table structure looks like this: ...
3
votes
1answer
104 views

Hibernate @OneToMany relationship

I started to play around with Hibernate since yesterday and came with the following example of OneToMany relationship example, but I am not sure if I am doing right and I have no one around me knowing ...
10
votes
1answer
335 views

Is this the way to use HibernateCompositeUser type for handling localized contents?

I am trying to use HibernateCompositeUser type to handle i18n specific data in my application. I am trying to use the below approach. I have a table named ...
1
vote
1answer
1k views

Hibernate proxy converter for GWT

Here's a class that converts Hibernate proxies to normal classes. This is useful with GWT for example, when sending objects loaded from database to the GWT client. Please review it. ...
2
votes
1answer
349 views

Dao function using hibernate

Just wondering if the following is the best way to write a dao function, should i get the entity manager before the transaction and close it after the transaction everytime? should i write ...
1
vote
2answers
471 views

Hibernate transaction advice [closed]

I'm new to Hibernate so I need some advice/direction on doing Transactions. I have a DAO like ...