This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I created a simple "Concrete table inheritance" relationship as described here: http://www.mindscapehq.com/blog/index.php/2009/03/01/getting-started-with-inheritance-in-lightspeed/ My base, abstract class (TrackableEntity) has Track Create/Update Time set to true and has both Created and Updated By string properties. I saved these changes to the MySQL DB and got exactly the tables I expected in the way of actual tables. However, I noticed that the string fields were max character size, which was silly for my application. I modified the model to set the Validate Length of the CreatedBy and ModifiedBy fields on the abstract base class to <= 256 and I saved and again updated the MySQL database. The MySQL updates failed, because the DDL generated tried to alter a table named after the abstract base class, not the actual concrete class tables. For example: Given an abstract base class of TrackableEntity (pluralization is on) and concrete classes of Book & Achievement, I would have expected the Book and Achievement tables to be altered. However, the following was produced instead:
|
|
|
Thanks for alerting us to this issue. It will be fixed in the next nightly build. |
|
|
Glad I could help. Excellent, fast response. :-) |
|