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
|
Is there any way to customize which properties are used for CreatedOn, UpdatedOn, DeletedOn? I implemented a custom NamingStrategy and it took some time of confusion untill I realized that I still need field/property names _createdOn/CreatedOn in the Entity classes. Have I missed something? Any workarounds? I'd like, for example, the column DateDeleted in my DB to work as a LightSpeed managed SoftDelete column while also being a queryable Entity property called DateDeleted. |
|
|
Hi Robbam :) No, you are not currently missing anything - currently those names are fixed as far as the entity type model is declared. So those have to be the names for the properties on the entity. That said, I dont see why we cannot extend the naming strategy to allow you to provide custom names for these. How would that sound?
Jeremy |
|
|
That sounds great! Or maybe an attribute on the fields instead? [CreatedOnColumn] |
|