[odb-users] Enable/Disable query support via pragma
Stath, Paul
pstath at axxcelera.com
Fri Oct 19 13:03:11 EDT 2012
Boris --
It would be nice if there was an ODB pragma which could be used to enable/disable the generation of query support code for a persistent class.
This would be similar to the "db session" pragma that can be used to enable/disable session support on a per object basis.
In the rather simplistic data model for my project, I have two objects that are retrieved using a query,
while the remaining objects are always loaded by primary key.
Without a pragma, I currently run the ODB compiler twice, once for the persistent object that do not require query support,
and a second time for the two classes that do need query support.
-- Paul Stath
More information about the odb-users
mailing list