QA Daily report 07 December 2007
by Aliaksey Nis
Hello Denis,
This is Daily QA report.
Tasks performed today (07 December 2007):
1. Linux JSF& Struts free testing tests.
2. Linux preferences tests.
3. Free testing in Linux and Windows.
--
Best regards,
Aliaksey mailto:anis@exadel.com
17 years
Re: [jbosstools-dev] Hibernate Property
by Max Rydahl Andersen
Hi Dmitry,
>>>> cool - looks good.
>>>> Are you adding hbm.xml support too ?
>>>
>>> No I am not.
>>> It was added earlier.
>>
>> Also for components ?
>
> As I understood yuor first question was about how I find the mapping
> file.
> In the old OpenMappingActionDelegate class we had method
> openMapping(RootClass rootClass, ConsoleConfiguration
> consoleConfiguration).
>
> As you see all I had to do is get RootClass and ConsoleConfiguration
> from tree selection and call this method.
> Futher it is havent sence to me what a file opens, I had to find the
> certain line in the file and select the name of selected element.
Ok.
> So, one of the problem is get RootClass from selected element which was
> not resolved for containers properties.
Sure - but since these are properties/components you need to look for more
than just
the RootClass. RootClass is only used for *entities* not for *values*
which components
and are an example of.
Here you need to look for the property type as shown in Cfg2Java.
> I was visited by idea: is it possible that RootClass mapped in one file
> and its subclass in another?
hbm.xml supports these two ways of defining subclasses:
<class name="Person">
...
<subclass name="Student">
...
</subclass>
</class>
OR
<class name="Person">
...
</class>
<subclass name="Student" extends="Person">
...
</subclass>
First one will always be in the same file.
Second one can be in the same or different files.
> In this case my resolution will not work.
> Should we commit our changes?
Please write unittests for it before doing that.
Should be trivial to test your lookup methods with sample hbm.xml and
annotated classes.
Doesn't need any UI setup to verify that.
/max
>>
>>>> btw. that action should be the default for double clicking.
>>>
>>>
>>> Will done.
>>>
>>> It is a pity but I've not found the hibernate-tool.jar source code.
>>> (Even google.com couldn't help me).
>>
>>
>> http://tools.hibernate.org/ the home page of hibernate tools is a good
>> start ;)
>>
>> There is a link Build and contribute http://www.hibernate.org/268.html
>> which has the instructions.
>>
>
>
--
--
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
17 years
Re: [jbosstools-dev] Hibernate Property
by Max Rydahl Andersen
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
17 years
Hibernate Property
by Dmitry Geraskov
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.
--
Best regards,
Dmitry Geraskov
dgeraskov(a)exadel.com
Senior Developer
Exadel Inc
17 years
QA Daily report 05 December 2007
by Aliaksey Nis
Hello Denis,
This is Daily QA report.
Tasks performed today (05 December 2007):
1. Linux Seam tests.
2. Linux project creation, import.
3. Linux OpenOn.
--
Best regards,
Aliaksey mailto:anis@exadel.com
17 years
QA Daily report 4 december 2007
by Anton Klimkovich
Hello Denis,
This is Daily QA report.
Tasks performed today:
Testing of Seam features and JBoss AS server features.
Creating/Importing different types of projects.
OpenOn tests.
--
Best regards,
Anton Klimkovich mailto:aklimkovich@exadel.com
17 years
Mapping diagram fix
by Max Rydahl Andersen
Hi Alexander,
I'm not sure if you and the rest of the hibernate team at Exadel is on
jbosstools-dev, so i'm cc'ing you. If you are not on the list then please
sign up ,)
Anyway, I just noticed this commit:
http://fisheye.jboss.org/browse/JBossTools/trunk/hibernatetools/plugins/o...
Calling buildMappings() on a configuration very often (which a label
generator for column will result it) should *not* occur. It is an
heavyweight operation - it should only be done very rarely; and basically
only when first created.
Please fix that.
Thanks,
--
--
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
17 years