From: <leg...@at...> - 2003-08-27 14:27:27
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-294 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-294 Summary: Precompilation of Hibernate mappings (e.g. serialized Configuration/SessionFactory) Type: New Feature Status: Unassigned Priority: Major Project: Hibernate2 Components: core toolset Versions: 2.1 beta 2 Assignee: Reporter: Aksel Hilde Created: Wed, 27 Aug 2003 9:26 AM Updated: Wed, 27 Aug 2003 9:26 AM Environment: - Description: To use Hibernate at run-time one must first load and "compile" all the mapping files. Something like this: Configuration config = ...; //Load all properties and mapping files SessionFactory sessionFactory = config.buildSessionFactory(); This is very nice when the domain model change rapidly, because things are always up to date when unit testing. But when the domain model is relatively stable, this "compilation" takes quite some time. It would therefore be very nice to have a tool to "pre-compile" all the mappings and store them in a file in serialized form, and the ability to create a SessionFactory or at least a Configuration at run-time by loading the pre-compiled mappings. This would speed up unit testing a lot for us!! We have a J2SE-client + J2EE-server app, but are doing all our business logic unit testing in a single VM. So when I would like to run a jUnit test, then the time taken to compile mappings is relatively high compared to the time the actual test takes. And now we only have about 20 entities, pretty soon that number will double or tripple. Anyway, thanks for a great O/R tool!! Best regards Aksel Hilde --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |