[Hibernate-JIRA] Created: (HHH-2284) HQL: selecting components inside components doesn't work
by Fabio Tudone (JIRA)
HQL: selecting components inside components doesn't work
--------------------------------------------------------
Key: HHH-2284
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2284
Project: Hibernate3
Type: Bug
Components: query-hql
Versions: 3.1.2
Environment: Probably all. Tested with DB2, MySQL, HSQL + Tomcat, WAS5, DriverManager.
Reporter: Fabio Tudone
Priority: Critical
Attachments: test.jar
When using an entity with a component owning another component, as follows:
<class name="org.test.hibernate.bug2455.MyEntity">
<composite-id>
<key-property name="myKey">
<column name="myKey"/>
</key-property>
</composite-id>
<component name="myComponent">
<property name="myValue">
<column name="myValue"/>
</property>
<component name="myInnerComponent">
<property name="myInnerValue">
<column name="myInnerValue"/>
</property>
</component>
</component>
</class>
The following HQL query fails:
"select e.myComponent.myInnerComponent from org.test.hibernate.bug2455.MyEntity e"
with the following error:
could not resolve property: myInnerComponent of: org.test.hibernate.bug2455.MyEntity
--
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
17 years, 5 months
[Hibernate-JIRA] Updated: (HHH-16) Explicit joins on unrelated classes
by Steve Ebersole (JIRA)
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-16?page=all ]
Steve Ebersole updated HHH-16:
------------------------------
Fix Version: 3.3
(was: 3.2.2)
Initial release of 3.3 will be merging of the HQL_ANTLR_2 branch and trunk. HQL_ANTLR_2 is the branch where all this HQL translator work has been happening.
> Explicit joins on unrelated classes
> -----------------------------------
>
> Key: HHH-16
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-16
> Project: Hibernate3
> Type: New Feature
> Components: core
> Environment: Any
> Reporter: David Lloyd
> Assignee: Steve Ebersole
> Fix For: 3.3
>
>
> It would be nice to be able to do explicit joins on unrelated classes with HQL:
> (hope this renders correctly)
> select empl, phone
> from org.example.Employee empl
> left outer join org.example.PhoneBook phone
> on phone.lastName = empl.lastName
> and phone.firstName = empl.firstName
> where empl.salaryGrade > 10
> Note that this would also implicity solve HB-1089 because you could list join criteria that match what Hibernate would have chosen anyway (i.e., list a many-to-one relationship as a criteria explicitly).
> Syntactically this could be disambiguated from the existing join syntax because the token after "join" is a class name rather than a property name.
--
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
17 years, 5 months
[Hibernate-JIRA] Updated: (HHH-1775) collection batch fetching
by Steve Ebersole (JIRA)
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1775?page=all ]
Steve Ebersole updated HHH-1775:
--------------------------------
Fix Version: hql+collection
(was: 3.2.2)
> collection batch fetching
> -------------------------
>
> Key: HHH-1775
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1775
> Project: Hibernate3
> Type: Improvement
> Components: core
> Reporter: Steve Ebersole
> Assignee: Steve Ebersole
> Priority: Minor
> Fix For: hql+collection
>
>
> I have code local on my box to support "peeking" into the second level cache when determining whether to add a particular entity/collection key to a batch load request. If the given key is contained in the second level cache, then do not batch fetch the entity/collection as it will be initialized from second level cache on access.
> However, there are still large inefficiencies when performing this for collections; the biggest of which currently is the fact that we retreive a IdentityMap.entrySet for each and ever call to determine a collectiomn fetch batch. For performance reasons, we should align this with how entity batches are handled where the entity keys considered to be "batch loadable" are tracked seperately on the BatchFetchQueue.
--
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
17 years, 5 months
[Hibernate-JIRA] Created: (HHH-2370) Xml-persisted empty string are interpreted as null value
by Daniele Castagna (JIRA)
Xml-persisted empty string are interpreted as null value
--------------------------------------------------------
Key: HHH-2370
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2370
Project: Hibernate3
Type: Bug
Components: core
Versions: 3.2.2
Environment: All hibernate version, on all platform.
Reporter: Daniele Castagna
Priority: Minor
Attachments: HEmptyString.tar.gz
NullableType.Object fromXMLString(String xml, Mapping factory) method returns null if the string is an empty string (string with a length of 0).
This creates some problems when you use xml persistence to export or import empty string property with the not-null costraint.
Look at the attachment simple project (or here: http://forum.hibernate.org/viewtopic.php?t=969755 ) for an example that will throw an unexpected exception.
This problem could be easily fixed removing the "|| xml.length()==0" boolean expression from the fromXMLString method.
I think that it would be better not only with strings but even with other types; for example an xml tag that should be interpreted as an Integer and contains an empty string should throw an exception, and should not return a null value. The null value is already represented by the absence of the xml tag.
--
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
17 years, 5 months