Showing posts with label hibernate. Show all posts
Showing posts with label hibernate. Show all posts

Sunday, June 10, 2012

Weaknesses of Hibernate


I would like to know which are the weak points of Hibernate 3. This is not pretended to be a thread against Hibernate. I think it will be a very useful knowledge for decide if Hibernate is the best option for a project or for estimating its time.

Thursday, May 17, 2012

What are the best books for Hibernate & JPA?


My team is about to build a new product and we are using Hibernate/JPA as the persistence mechanism. There are other book posts on stackoverflow, but I couldn't find one that matched my needs.

Wednesday, April 25, 2012

Print query string in hibernate with parameter values


Is it possible in hibernate to print generated sql queries with real values instead of question marks?

Tuesday, April 10, 2012

Is Hibernate an overkill for an Android application?


I'm looking for a good ORM for my android application and at first glance it seems like for a mobile device I would prefer to use something simpler maybe. The thing is I'm just assuming here with no real evidence, so I thought I would ask the community's opinion (maybe there's is someone that has been through the experience). It is a fairly large(for mobile) application and will be run on a dedicated tablet.

Sunday, March 11, 2012

apache commons equals/hashcode builder


I'm curious to know, what people here think about using org.apache.commons.lang.builder EqualsBuilder/HashCodeBuilder for implementing the equals/hashcode? Would it be a better practice than writing your own? Does it play well with Hibernate? What's your opinion?

What"s new in Hibernate 4?


I just saw that a beta of Hibernate 4 was released. What's new in 4 compared to 3(.6)? I couldn't find this info in the beta announcement, nor when Googling the title of this question.

Saturday, February 25, 2012

How to auto insert Current DATE in SQL with Java / Hibernate


I need to add automatically the current date into my Database when I create a new OperantionBank. I'm using Hibernate. Thanks

Tuesday, February 21, 2012

Remove an object from session in hibernate


How can I remove an object from hibernate session? In my code I am fetching one list from the DB and searching if the user entered data is already there in the DB. If it is there I am overwriting it. Else I am creating a new object and saving it. But the jboss shows error that there are two objects in session. As far as i guess one object is the object that iterates through the list and other is the one newly created for saving the data.

Tuesday, February 14, 2012

Using DISTINCT keyword in JPA on individual columns


I am reading some values from a database that is horribly un-normalized (which I can't control). The call retrieves announcements for university departments, and if a user is in multiple departments (which is possible), then the same results are returned multiple times for these users. However, some departments might have different announcements, while some have the same.

Monday, January 30, 2012

Why to use Hibernate Mapping Component?


I am learning hibernate an i came across Hibernate Mapping Component. Why should we use it if we can have the same pojo class for student and address??

Hibernate interceptors


I am trying to implement method described here , but can't make it work.

Friday, January 13, 2012

JPA 2 + Criteria API - Defining a subquery


I try to convert a sql query to Criteria API without success so far. I can create two separate queries which return the values I need, but I don't know how to combine them in a single query.