facebook

Myeclipse – Hibernate

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #229661 Reply

    zulu99
    Member

    Hi All

    I am using MyEclipse to generate the Hibernate mapping files as well the model(table) java classes.

    What Myeclipse does is it generates an Abstract class for each model(table) & then a class which extends to the Abstract model class.

    What i want to do is to avoid generation of these abstract classes & get the whole generated code in the Model class rather than Abstract model

    Do respond

    Bye
    Sp

    #229731 Reply

    Riyad Kalla
    Member

    SP,
    This is not supported, the reason for that is safety reasons. The abstract class is the class deleted/regenerated by MyEclipse when you update your mappings, however the concrete subclass is left alone so this is the place to put all your customizations into (e.g. custom toString methods, custom getter methods, etc.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Myeclipse – Hibernate

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