facebook

Reveng – how to extend a class

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

    kostellod
    Member

    I have a base class in JPA that handles my update version, user and timestamp. Each table has these columns in it, and the classes have the same attribute names for them. I want most of my generated classes to extend this class, and to ignore these three columns in their respective tables. How can this be done?

    #270532 Reply

    Brian Fernandes
    Moderator

    Hi,

    On page 3 of the RE wizard, you can select the columns you wish to exclude from the RE process. You will have to do this for each table and column you wish to exclude.

    Unfortunately there is no way right now to have all the generated tables extend a given common superclass – that will have to be done by hand for now.

    I will ask the DB team to add the ability to specify a common superclass during the RE process so all classes generated would automatically extend that class; this should be available in a future release.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Reveng – how to extend a class

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