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 am working with pmacct (a netflow data logger). It creates a new mysql table every day, named as "acct_bgp_5min_YYYYMMDD" with the date filled in. The tables have the exact same structure each day, just a new name Can I change the name of the table associated with the Entity at runtime? My current understanding is that I'd have to recompile the app every day to include the day's new table!
|
|
|
Check out LightSpeedContext.NamingStrategy and the INamingStrategy interface. See http://www.mindscapehq.com/documentation/lightspeed/Controlling-the-Database-Mapping/Overriding-the-Default-Mapping#_Ref293304107 for more info. |
|