[jbosstools-issues] [JBoss JIRA] Created: (JBIDE-1794) NullPointerException at Mapping Diagramm

Dima Geraskov (JIRA) jira-events at lists.jboss.org
Tue Feb 19 09:03:26 EST 2008


NullPointerException at Mapping Diagramm
----------------------------------------

                 Key: JBIDE-1794
                 URL: http://jira.jboss.com/jira/browse/JBIDE-1794
             Project: Tools (JBoss Tools)
          Issue Type: Bug
            Reporter: Dima Geraskov
         Assigned To: Dima Geraskov
             Fix For: 2.1


If  we have mapping when id class not  embedded in the entity NullPointer occured when you select id-property at the mapping diagramm.
For ex:
<class name="Customer">
		<composite-id class="CustomerId" mapped="true">
			<key-property name="orgName" column="org_name"/>
			<key-property name="customerName" column="cust_name"/>
		</composite-id>
	</class>
(See "mapping.idclass" pack in test mapping project ).

Persistance class for the property is null. (Properties view demands it).
I'll change it to return null (when it threw NullPointerException).

But for the Composite properties Diagram uses SpecialPersistanceClas, 
as properties view demands it, we have here some inconsistency between shown Persistance class in Properties view and real Persistance class (think about Address object - properties view will show it like Persistance class for the street, but real persistance class is null).





-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list