[hibernate-issues] [Hibernate-JIRA] Commented: (HBX-893) "Can't create session factory" if any @NamedQuery annotations on entities have errors in them

Max Rydahl Andersen (JIRA) noreply at atlassian.com
Thu Feb 22 05:49:32 EST 2007


    [ http://opensource.atlassian.com/projects/hibernate/browse/HBX-893?page=comments#action_26214 ] 

Max Rydahl Andersen commented on HBX-893:
-----------------------------------------

set hibernate.query.startup_check to false to avoid this (i'll keep this bug open to make it an automatic option)

The problem is that there are no way for us to build a sessionfactory (to execute queries) if there are errors in the mappings.....



> "Can't create session factory" if any @NamedQuery annotations on entities have errors in them
> ---------------------------------------------------------------------------------------------
>
>          Key: HBX-893
>          URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-893
>      Project: Hibernate Tools
>         Type: Bug

>     Versions: 3.2beta8
>     Reporter: Joseph Marques

>
>
> This seems to be a pretty big restriction - especially if you want to be able to cater to those that try to adopt Hibernate Tools part of the way through development, where some annotations may already have errors in them.
> Instead, it should be much more user-friendly to expand the session factory anyway, but just not load those entities - perhaps even marking them with a little red 'X' to indicate that the user needs to fix something in them.

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira




More information about the hibernate-issues mailing list