Forward Mapping Question

Thread is closed for posting
2 posts, 0 answers
  1. Alfred Ortega
    Alfred Ortega avatar
    193 posts
    Member since:
    May 2005

    Posted 22 Nov 2008 Link to this post

    I am testing the forward mapping and was very suprised by it's output.  I guess inherited properties are not considered at all.  I created a base class (abstract) with 3 or 4 properties and then inherited from it and a added a single property.  Now I run the forward engineering wizard, mark my class as persistable and when the db is created only the one property I added is accounted for!  What happened to everything else that is a part of that class?  Do abstract classes/interfaces have to be marked as persistable to? 

    Oh and Gilles ( is right on about the need to be able to control table/column names in the db.  My column was called m_RecordID....


  2. Jan Blessenohl
    Jan Blessenohl avatar
    707 posts

    Posted 24 Nov 2008 Link to this post

    Hi Alfred Ortega,

    If the base class is not persistent itself we mark all it's fields as transient. Pls. make all classes in your class hierarchy as persistent and you will see all the columns.

    Jan Blessenohl
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top