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
|
Hi, I would like if there's a way to define an entity as cachable for supporting second level cache. Right now the only way I found this possible is by manually editing every generated fluent-mapped class, but like that at every code generation i need to manually remap all. Any suggestions? Thank you very much Cheers, Alessandro |
|
|
Not via the designer Im afraid however you can modify the code generation templates to cater for this type of requirement. The templates are NVelocity templates and can be freely edited on a per project basis. See http://velocity.apache.org/engine/releases/velocity-1.5/user-guide.html for a guide to Velocity Template Language. Have a read of this blog post to understand how to set up per-project templates (its written in the context of LightSpeed but the same approach applies for the NH Designer) - http://www.mindscapehq.com/blog/index.php/2009/09/16/customising-lightspeed-entity-templates/
|
|