From: <no...@at...> - 2005-08-19 11:23:44
|
The following comment has been added to this issue: Author: Martin Zdila Created: Fri, 19 Aug 2005 6:23 AM Body: I've modified hibernate-mapping-3.0.dtd and I've added <!ATTLIST key-many-to-one embed-xml (true|false) "true"> to see the mirracle. But I didn't. What I saw was the same exception + stack trace as in HHH-796: java.lang.NullPointerException at org.hibernate.type.EntityType.getIdentifierType(EntityType.java:227) at org.hibernate.type.EntityType.setToXMLNode(EntityType.java:422) at org.hibernate.property.Dom4jAccessor$ElementSetter.set(Dom4jAccessor.java:307) at org.hibernate.tuple.AbstractComponentTuplizer.setPropertyValues(AbstractComponentTuplizer.java:80) at org.hibernate.type.ComponentType.setPropertyValues(ComponentType.java:262)a:262) ... So maybe theese thwo issues are a bit related. The NullPointerException is caused because factory is null and factory is null, because of: setters[i].set( component, values[i], null /* this is the factory */ ); in org.hibernate.tuple.AbstractComponentTuplizer.setPropertyValues(AbstractComponentTuplizer.java:80) I am not a hibernate hacker, I just want to help a bit. I hope I did :-). --------------------------------------------------------------------- View this comment: http://opensource.atlassian.com/projects/hibernate/browse/HHH-446?page=comments#action_19418 --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/browse/HHH-446 Here is an overview of the issue: --------------------------------------------------------------------- Key: HHH-446 Summary: The is no possibility to specify embed-xml on key-many-to-one tag Type: Improvement Status: Unassigned Priority: Minor Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: Hibernate3 Components: core Versions: 3.0.2 Assignee: Reporter: Markus Jessenitschnig Created: Fri, 6 May 2005 10:38 AM Updated: Fri, 19 Aug 2005 6:23 AM Environment: MySQL Description: It is not possible to specify embed-xml="false" on key-many-to-one tags within composite-id tag like it is possible for many-to-one relations. --------------------------------------------------------------------- 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 |