[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-6271) deploying with a 1.0 orm.xml, gets unexpected error HHH00196

Hardy Ferentschik (JIRA) noreply at atlassian.com
Thu Mar 15 06:49:48 EDT 2012


    [ https://hibernate.onjira.com/browse/HHH-6271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45964#comment-45964 ] 

Hardy Ferentschik commented on HHH-6271:
----------------------------------------

One approach could be to just not log an error:

{code}
	public void error(SAXParseException error) {
		//LOG.parsingXmlError(error.getLineNumber(), error.getMessage());
		// if error has not been set yet, keep the first error
		if ( this.error == null ) {
			this.error = error;
		}
	}
{code}

If there was an error we will later wrap the error anyways in a _MappingException_. I pushed this approach to https://github.com/hferentschik/hibernate-orm/tree/HHH-6271. Thoughts?

> deploying with a 1.0 orm.xml, gets unexpected error HHH00196
> ------------------------------------------------------------
>
>                 Key: HHH-6271
>                 URL: https://hibernate.onjira.com/browse/HHH-6271
>             Project: Hibernate ORM
>          Issue Type: Bug
>          Components: entity-manager
>            Reporter: Scott Marlow
>            Assignee: Hardy Ferentschik
>


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list