[Hibernate-JIRA] Commented: (HHH-530) Better handling of filter params in HQL to allow filter use on subqueries
by Shawn Clowater (JIRA)
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-530?page=co... ]
Shawn Clowater commented on HHH-530:
------------------------------------
Blast from the past. Forgot all about this until I jacked in the patch for the createAlias for Subqueries for a coworker today. Then noticed that filters weren't applied to the joins. And then when I touched that up, the incorrect binding order.
This is definitely a show stopper for me, I either need this or the ability to specify the same association twice in 2 separate createAlias calls. I guess the other alternative would be HQL w/o the use of subqueries.
I'll be investigating applying the above patch in the morning (which for me is 12 hours) to a 3.2.5 jar. If more work is needed for this I can be available for either development and/or guinea pig, we've got a bunch of filters being used so if something comes off the rails it should be pretty apparent.
> Better handling of filter params in HQL to allow filter use on subqueries
> -------------------------------------------------------------------------
>
> Key: HHH-530
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-530
> Project: Hibernate3
> Issue Type: Bug
> Components: core
> Reporter: Gavin King
> Assignee: Steve Ebersole
> Attachments: hibernate_filter_fix-3.0.5.patch, hibernate_filter_fix-3.0.5_14.patch
>
>
> Currently filter conditions are applied in subselects, they should not be.
--
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
18 years, 3 months
[Hibernate-JIRA] Commented: (HHH-1494) Path for Bug HHH-1493
by Patrick Decat (JIRA)
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1494?page=c... ]
Patrick Decat commented on HHH-1494:
------------------------------------
Here is a proper patch against current trunk@14028 :
Index: /home/pdecat/workspace/eclipse-3.3/hibernate-core-trunk-mapping/Table.java
===================================================================
--- /home/pdecat/workspace/eclipse-3.3/hibernate-core-trunk-mapping/Table.java (révision 14028)
+++ /home/pdecat/workspace/eclipse-3.3/hibernate-core-trunk-mapping/Table.java (copie de travail)
@@ -295,15 +295,14 @@
String defaultValue = column.getDefaultValue();
if ( defaultValue != null ) {
alter.append( " default " ).append( defaultValue );
-
- if ( column.isNullable() ) {
- alter.append( dialect.getNullColumnString() );
- }
- else {
- alter.append( " not null" );
- }
-
}
+
+ if ( column.isNullable() ) {
+ alter.append( dialect.getNullColumnString() );
+ }
+ else {
+ alter.append( " not null" );
+ }
boolean useUniqueConstraint = column.isUnique() &&
dialect.supportsUnique() &&
> Path for Bug HHH-1493
> ---------------------
>
> Key: HHH-1494
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1494
> Project: Hibernate3
> Issue Type: Patch
> Components: core
> Affects Versions: 3.1.1, 3.1.2
> Environment: sybase 11.1.1-swr8229, Windows XP, java 1.4.2_08-b03
> Reporter: Alexis Midon
> Attachments: Table.java.patch
>
> Original Estimate: 30 minutes
> Remaining Estimate: 30 minutes
>
> This a patch for Bug HHH-1493: "mapping.Table fails to add a nullable column"
> http://opensource.atlassian.com/projects/hibernate/browse/HHH-1493
--
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
18 years, 3 months
[Hibernate-JIRA] Created: (ANN-661) Add support for named pure native scalar queries
by Chris Bredesen (JIRA)
Add support for named pure native scalar queries
------------------------------------------------
Key: ANN-661
URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-661
Project: Hibernate Annotations
Issue Type: New Feature
Components: binder
Reporter: Chris Bredesen
Priority: Minor
This feature has been requested but is not yet implemented:
Caused by: org.hibernate.cfg.NotYetImplementedException: Pure native scalar queries are not yet supported
at org.hibernate.cfg.annotations.QueryBinder.bindNativeQuery(QueryBinder.java:118)
at org.hibernate.cfg.AnnotationBinder.bindQueries(AnnotationBinder.java:277)
at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:417)
at org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:498)
at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:277)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1286)
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:915)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:730)
--
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
18 years, 3 months
[Hibernate-JIRA] Created: (HHH-2865) Criteria generated SQL query has duplicated column names
by Juan Ignacio Sánchez (JIRA)
Criteria generated SQL query has duplicated column names
--------------------------------------------------------
Key: HHH-2865
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2865
Project: Hibernate3
Issue Type: Bug
Components: query-criteria
Affects Versions: 3.2.5
Environment: Hibernate 3.2.5, Oracle
Reporter: Juan Ignacio Sánchez
I'm doing a Criteria.list() query and it throws this exception:
INFO LongType:182 - could not read column value from result set: C2_12_; Fallo al convertir a representación interna
(internal representation conversion failure).
So I looked at the generated query, and saw C2_12_ appears twice.
SELECT this_.c_tarea_id AS c1_2_10_, this_.d_comentario AS d2_2_10_,
this_.f_alta AS f3_2_10_, this_.f_hecho AS f4_2_10_,
this_.f_plazo AS f5_2_10_, this_.c_mgestionado_modelo AS c7_2_10_,
...
estado5_.d_nombre AS d4_0_1_, opciones6_.c_tarea_id AS c1_12_,
[b]opcs1_.c_mgestionado_id AS c2_12_[/b], opcs1_.c_transicion_id AS c3_12_,
opcs1_.c_mgestionado_id AS c1_3_2_, opcs1_.c_transicion_id AS c2_3_2_,
...
rolespermi10_.c_mgestionado_id AS c1_12_,
[b]rolespermi10_.c_transicion_id AS c2_12_[/b], rol11_.c_rol AS c3_12_,
rol11_.c_rol AS c1_26_5_, rol11_.d_rol AS d2_26_5_,
...
WHERE ups2_.c_usuario IN (?) AND this_.f_hecho IS NULL
When Hibernate extracts query results to objects it will fail because 'C2_12_' refers to different data types.
--
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
18 years, 3 months