facebook

not generate "equals()" and "hashcode()"

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #252601 Reply

    fuwang
    Member

    hi,
    when I use myeclipse4.1.1 to generate Hibernate POJO classes ,it doesn’t create equals() and hashcode() method. how can I create it?

    thanks in advance.

    #252627 Reply

    Riyad Kalla
    Member

    There has been quite a bit of talk about this in the forums, and once you move to MyEclipse 5.0 on the Eclipse 3.2 paltform you will be able to right click and generate those two methods using properties of the class. We don’t generate them now by default because it is infact VERY complicated to generate correct implementations of those methods and they should be based on only static unchanging values, which POJOs are almost entirely *not*

    For more info, check this out:
    http://www.eclipsezone.com/eclipse/forums/m91993744.html

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: not generate "equals()" and "hashcode()"

You must be logged in to post in the forum log in