cool - looks good.
Are you adding hbm.xml support too ?
btw. that action should be the default for double clicking.
/max
> Look in hibernate tools code generation code on how to do this.
>
> It is a component not a persistentclass.
>
> I don't have the source just available here, but something like
> Cfg2Java.getJavaType(property) should
> give you a good idea.
>
Thanks a lot!
> What is it for ?
I am working under the following issues:
JBIDE-1422 Hibernate Configurations view: Open Source File / Mapping
File/ Mapping diagram actions are disabled for joined-subclass
JBIDE-1412 Mapping diagram: improve "Open Source/Mapping" actions
and uder improvement of context menu at all.
I've almost finished it, but I can't open Sourca and Mapping file
without enough information about the objects(it is concerning the
Component Properties).
I've made some scrinshots to show how it works now.
Dima
>
> -max
>
>
>> Hi All!
>>
>> I have the following mapping structure in my hbm.xml file:
>>
>> <class name="Person"
>> discriminator-value="P">
>> ... <component name="address">
>> <property name="street"/>
>> <property name="zip"/>
>> <property name="country"/>
>> </component>
>> ...
>>
>> In Java code I get object of the type
>> org.hibernate.mapping.Property. For example it is "zip" property.
>>
>> The question is: how can I know that my Property object is property
>> of "address" Subclass ("address" component).
>>
>> Property.getPersistanceClass() returns null.
>>
>
>
>
--
--
Max Rydahl Andersen
callto://max.rydahl.andersen
Hibernate
max(a)hibernate.org
http://hibernate.org
JBoss a division of Red Hat
max.andersen(a)jboss.com