[jbosstools-issues] [JBoss JIRA] Resolved: (JBIDE-700) Hibernate diagram fails on simplest mapping

Mikle Dryakhlenkov (JIRA) jira-events at lists.jboss.org
Mon Aug 13 11:08:01 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBIDE-700?page=all ]

Mikle Dryakhlenkov resolved JBIDE-700.
--------------------------------------

    Resolution: Done

> Hibernate diagram fails on simplest mapping
> -------------------------------------------
>
>                 Key: JBIDE-700
>                 URL: http://jira.jboss.com/jira/browse/JBIDE-700
>             Project: JBoss Tools
>          Issue Type: Bug
>    Affects Versions: 2.0.0.Beta3
>            Reporter: Max Andersen
>         Assigned To: Mikle Dryakhlenkov
>            Priority: Blocker
>             Fix For: 2.0.0.Beta4
>
>
> @Entity
> public class Person {
>                   @Id
> 	int id;
> 	public int getId() {
> 		return id;
> 	}
> 	String name;
> }
> or with hbm.xml:
> <?xml version="1.0"?>
> <!DOCTYPE hibernate-mapping PUBLIC
> 	"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
> 	"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
> <hibernate-mapping>
>   <class name="Person">
>     <id name="id">
>       <generator class="assigned"></generator>
>     </id>
>     
>     <property name="name"></property>
>   </class>
> </hibernate-mapping>
> gives: 
> ava.lang.ClassCastException: org.hibernate.mapping.Property
> 	at org.jboss.tools.hibernate.ui.veditor.editors.model.OrmDiagram.createConnections(OrmDiagram.java:321)
> 	at org.jboss.tools.hibernate.ui.veditor.editors.model.OrmDiagram.getOrCreatePersistentClass(OrmDiagram.java:189)
> 	at org.jboss.tools.hibernate.ui.veditor.editors.model.OrmDiagram.<init>(OrmDiagram.java:79)
> 	at org.jboss.tools.hibernate.ui.veditor.editors.VisualEditor.setInput(VisualEditor.java:106)
> p.s. we need to get the code in OrmDiagram cleaned up............everything is done via casts - incredibly unmaintainble and unsafe - need to be after beta1.

-- 
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