facebook

Hibernate RE, Abstract POJOs & property scope

  1. MyEclipse IDE
  2.  > 
  3. Feature Requests
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #262652 Reply

    jcastell
    Member

    As you no doubt know, one of the important parts of implementing a Hibernate entity is implementing .equals() and .hashCode() in a business key sense. Currently, when REing a table for Hibernate as an abstract and concrete POJO, all of the properties are created as private member variables of the abstract class with public getters and setters. This makes implementing .equals() and .hashCode() in the concrete class a bit more complicated, since using the Source -> Generate hashCode() and equals() available in Eclipse 3.2 doesn’t work for the concrete class because the member variables aren’t visible.

    So how about adding an option when REing the table to specify the visibility of the abstract class variables that correspond to Hibernate properties?

    -jc

    #262738 Reply

    Riyad Kalla
    Member

    jc,
    Good suggestion for an enhancement, I will file it.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Hibernate RE, Abstract POJOs & property scope

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