Hi,
I am using Hibernate in my application for what is was made... give persistence to my java objects. Now i have to implement some logger messages objects that i would like to store in the database in smart and clean way as for the rest of objects using hibernate. All works well and i can store them, but then when i restart the application i don't want them to be loaded. This records in the database do not need to be loaded in the memory when the application is started but loaded whenever the user ask for some report (with a direct connection using Jasper).
My idea as you see is use Hibernate to store them, but not to load them at the application start time.
Is it possible? Is there any 'flag' i can use in the mapping file to prevent the load?
Thanks,
Dani.
|