My Notepad

  • My Linux Notes
  • My Grid Notes
  • To do List
  • Tuesday, March 04, 2008

     

    Hibernate 3 Notes

    A few notes gained in the evaluation of Hibernate:
    1. Try not use primitive property in your class whenever possible. Try to use wrapper class like
    Integer, Long, etc, because hibernate might try to assign NULL value to primitive and failed.
    2. in many-to-one parent/child mappings, it's crucial to have parent field instead of parent_id in child class, you will get
    infamous illegalArgumentException if you put parent_id inside child class.

    3. if you can't find anything useful with google, try yahoo.

    More details: http://forum.hibernate.org/viewtopic.php?p=2338950

    Labels:


    Comments: Post a Comment



    << Home

    Archives

    December 2005   January 2006   February 2006   April 2006   May 2006   June 2006   July 2006   November 2006   February 2007   May 2007   June 2007   November 2007   February 2008   March 2008   April 2008   August 2008   December 2008   March 2009   April 2009   May 2009   June 2009   October 2009   November 2009   December 2009   May 2013  

    This page is powered by Blogger. Isn't yours?