RE: [Hibernate] Issue with pluggable functions
yep -Original Message- From: Emmanuel Bernard Sent: Wednesday, May 10, 2006 10:41 AM To: Steve Ebersole; '[EMAIL PROTECTED]'; 'hibernate-devel@lists.sourceforge.net' Subject: Re: [Hibernate] Issue with pluggable functions Yes add back the old method signature We will remove it at a latter release Mark it as deprecated -Original Message- From: Steve Ebersole <[EMAIL PROTECTED]> To: Emmanuel Bernard <[EMAIL PROTECTED]>; Hibernate development Sent: Wed May 10 09:49:46 2006 Subject: RE: [Hibernate] Issue with pluggable functions Sorry, my fault. I forgot that we added that call to your stuff. We really need this changed though to properly allow for (1) classic aggregation registration and (2) better user function registration. The other thing I could do is add back the old signature which would only be for your use, and which would not account for user-registered functions (planned feature). That work? From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Emmanuel Bernard Sent: Wednesday, May 10, 2006 9:05 AM To: Hibernate development Subject: [Hibernate] Issue with pluggable functions public static String renderWhereStringTemplate(String sqlWhereString, Dialect dialect, SQLFunctionRegistry functionRegistry) Breaks binary compatibility with Hibernate Annotations 3.2.0.CR1 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642 ___ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel
Re: [Hibernate] Issue with pluggable functions
can't do that unless JBoss 4.0.4 goes With a core 3.2.0.CR3 Max Rydahl Andersen wrote: On Wed, 10 May 2006 16:05:27 +0200, Emmanuel Bernard <[EMAIL PROTECTED]> wrote: > public static String renderWhereStringTemplate(String sqlWhereString, > Dialect dialect, *SQLFunctionRegistry functionRegistry*) > > > Breaks binary compatibility with Hibernate Annotations 3.2.0.CR1 Damn...but why are you using that from annotations ? In any case, did you not need to rebuild annotations to remove the cglib dependency ? -- -- Max Rydahl Andersen callto://max.rydahl.andersen Hibernate [EMAIL PROTECTED] http://hibernate.org JBoss Inc [EMAIL PROTECTED] --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel
RE: [Hibernate] Issue with pluggable functions
That still creates an incompatibility because the annotations code must change to use the new signature. I'll just add back the old signature to Template and, yes, it'll do what you just said. -Original Message- From: Max Andersen Sent: Wednesday, May 10, 2006 10:27 AM To: Steve Ebersole; hibernate-devel@lists.sourceforge.net Subject: Re: [Hibernate] Issue with pluggable functions okey - sounds like a crazy feature ;) So the fix is to apply the "hack" I wrote in the last email; it will be in the same league as what is done currently for this map/many-to-many. /max > We used to implement a required feature of EJB3 that really does not > make much sense ;) It allows you to have a > structure where the map-key comes from the target entity table (i.e. > *not* the association table). > > At any rate, it probably will be added to core at some point; but it is > very intensive to implement properly there, so we did it this way for > the sake of getting the latest releases out. > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Max > Rydahl Andersen > Sent: Wednesday, May 10, 2006 9:57 AM > To: Emmanuel Bernard; [EMAIL PROTECTED]; > hibernate-devel@lists.sourceforge.net > Subject: Re: [Hibernate] Issue with pluggable functions > > On Wed, 10 May 2006 16:45:02 +0200, Emmanuel Bernard > <[EMAIL PROTECTED]> wrote: > >> Yes at least we must not release another core version until we find a > >> solution > > Again why are you using this function at *config* time ? > What is this feature that is in annotations and not in the core ? > > Anyhow a workaround is: > > formulaString = Template.renderWhereStringTemplate( formulaString, > "$alias$", new HSQLDialect(), new SQLFunctionRegistry( new > HSQLDialect(), > Collections.EMPTY_LIST) ); > > which is just as much a hack like the existing dummy new HSQLDialect() > you > have ;) > > /max > > >> >> >> -Original Message----- >> From: Max Rydahl Andersen <[EMAIL PROTECTED]> >> To: Emmanuel Bernard <[EMAIL PROTECTED]>; Hibernate development >> >> Sent: Wed May 10 09:24:46 2006 >> Subject: Re: [Hibernate] Issue with pluggable functions >> >> >> ...so I apparently did not have the latest-latest of annotations > checkked >> out when i added this; sorry! >> >> Is it a show-stopper ? >> >>> public static String renderWhereStringTemplate(String sqlWhereString, >>> Dialect dialect, *SQLFunctionRegistry functionRegistry*) >>> >>> >>> Breaks binary compatibility with Hibernate Annotations 3.2.0.CR1 >> >> >> > > > -- -- Max Rydahl Andersen callto://max.rydahl.andersen Hibernate [EMAIL PROTECTED] http://hibernate.org JBoss Inc [EMAIL PROTECTED] --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642 ___ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel
Re: [Hibernate] Issue with pluggable functions
okey - sounds like a crazy feature ;) So the fix is to apply the "hack" I wrote in the last email; it will be in the same league as what is done currently for this map/many-to-many. /max We used to implement a required feature of EJB3 that really does not make much sense ;) It allows you to have a structure where the map-key comes from the target entity table (i.e. *not* the association table). At any rate, it probably will be added to core at some point; but it is very intensive to implement properly there, so we did it this way for the sake of getting the latest releases out. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Max Rydahl Andersen Sent: Wednesday, May 10, 2006 9:57 AM To: Emmanuel Bernard; [EMAIL PROTECTED]; hibernate-devel@lists.sourceforge.net Subject: Re: [Hibernate] Issue with pluggable functions On Wed, 10 May 2006 16:45:02 +0200, Emmanuel Bernard <[EMAIL PROTECTED]> wrote: Yes at least we must not release another core version until we find a solution Again why are you using this function at *config* time ? What is this feature that is in annotations and not in the core ? Anyhow a workaround is: formulaString = Template.renderWhereStringTemplate( formulaString, "$alias$", new HSQLDialect(), new SQLFunctionRegistry( new HSQLDialect(), Collections.EMPTY_LIST) ); which is just as much a hack like the existing dummy new HSQLDialect() you have ;) /max -Original Message- From: Max Rydahl Andersen <[EMAIL PROTECTED]> To: Emmanuel Bernard <[EMAIL PROTECTED]>; Hibernate development Sent: Wed May 10 09:24:46 2006 Subject: Re: [Hibernate] Issue with pluggable functions ...so I apparently did not have the latest-latest of annotations checkked out when i added this; sorry! Is it a show-stopper ? public static String renderWhereStringTemplate(String sqlWhereString, Dialect dialect, *SQLFunctionRegistry functionRegistry*) Breaks binary compatibility with Hibernate Annotations 3.2.0.CR1 -- -- Max Rydahl Andersen callto://max.rydahl.andersen Hibernate [EMAIL PROTECTED] http://hibernate.org JBoss Inc [EMAIL PROTECTED] --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel
RE: [Hibernate] Issue with pluggable functions
We used to implement a required feature of EJB3 that really does not make much sense ;) It allows you to have a structure where the map-key comes from the target entity table (i.e. *not* the association table). At any rate, it probably will be added to core at some point; but it is very intensive to implement properly there, so we did it this way for the sake of getting the latest releases out. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Max Rydahl Andersen Sent: Wednesday, May 10, 2006 9:57 AM To: Emmanuel Bernard; [EMAIL PROTECTED]; hibernate-devel@lists.sourceforge.net Subject: Re: [Hibernate] Issue with pluggable functions On Wed, 10 May 2006 16:45:02 +0200, Emmanuel Bernard <[EMAIL PROTECTED]> wrote: > Yes at least we must not release another core version until we find a > solution Again why are you using this function at *config* time ? What is this feature that is in annotations and not in the core ? Anyhow a workaround is: formulaString = Template.renderWhereStringTemplate( formulaString, "$alias$", new HSQLDialect(), new SQLFunctionRegistry( new HSQLDialect(), Collections.EMPTY_LIST) ); which is just as much a hack like the existing dummy new HSQLDialect() you have ;) /max > > > -Original Message- > From: Max Rydahl Andersen <[EMAIL PROTECTED]> > To: Emmanuel Bernard <[EMAIL PROTECTED]>; Hibernate development > > Sent: Wed May 10 09:24:46 2006 > Subject: Re: [Hibernate] Issue with pluggable functions > > > ...so I apparently did not have the latest-latest of annotations checkked > out when i added this; sorry! > > Is it a show-stopper ? > >> public static String renderWhereStringTemplate(String sqlWhereString, >> Dialect dialect, *SQLFunctionRegistry functionRegistry*) >> >> >> Breaks binary compatibility with Hibernate Annotations 3.2.0.CR1 > > > -- -- Max Rydahl Andersen callto://max.rydahl.andersen Hibernate [EMAIL PROTECTED] http://hibernate.org JBoss Inc [EMAIL PROTECTED] --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642 ___ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel
Re: [Hibernate] Issue with pluggable functions
On Wed, 10 May 2006 16:45:02 +0200, Emmanuel Bernard <[EMAIL PROTECTED]> wrote: Yes at least we must not release another core version until we find a solution Again why are you using this function at *config* time ? What is this feature that is in annotations and not in the core ? Anyhow a workaround is: formulaString = Template.renderWhereStringTemplate( formulaString, "$alias$", new HSQLDialect(), new SQLFunctionRegistry( new HSQLDialect(), Collections.EMPTY_LIST) ); which is just as much a hack like the existing dummy new HSQLDialect() you have ;) /max -Original Message- From: Max Rydahl Andersen <[EMAIL PROTECTED]> To: Emmanuel Bernard <[EMAIL PROTECTED]>; Hibernate development Sent: Wed May 10 09:24:46 2006 Subject: Re: [Hibernate] Issue with pluggable functions ...so I apparently did not have the latest-latest of annotations checkked out when i added this; sorry! Is it a show-stopper ? public static String renderWhereStringTemplate(String sqlWhereString, Dialect dialect, *SQLFunctionRegistry functionRegistry*) Breaks binary compatibility with Hibernate Annotations 3.2.0.CR1 -- -- Max Rydahl Andersen callto://max.rydahl.andersen Hibernate [EMAIL PROTECTED] http://hibernate.org JBoss Inc [EMAIL PROTECTED] --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel
RE: [Hibernate] Issue with pluggable functions
Sorry, my fault. I forgot that we added that call to your stuff. We really need this changed though to properly allow for (1) classic aggregation registration and (2) better user function registration. The other thing I could do is add back the old signature which would only be for your use, and which would not account for user-registered functions (planned feature). That work? From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Emmanuel Bernard Sent: Wednesday, May 10, 2006 9:05 AM To: Hibernate development Subject: [Hibernate] Issue with pluggable functions public static String renderWhereStringTemplate(String sqlWhereString, Dialect dialect, SQLFunctionRegistry functionRegistry) Breaks binary compatibility with Hibernate Annotations 3.2.0.CR1
Re: [Hibernate] Issue with pluggable functions
...so I apparently did not have the latest-latest of annotations checkked out when i added this; sorry! Is it a show-stopper ? public static String renderWhereStringTemplate(String sqlWhereString, Dialect dialect, *SQLFunctionRegistry functionRegistry*) Breaks binary compatibility with Hibernate Annotations 3.2.0.CR1 -- -- Max Rydahl Andersen callto://max.rydahl.andersen Hibernate [EMAIL PROTECTED] http://hibernate.org JBoss Inc [EMAIL PROTECTED] --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel
Re: [Hibernate] Issue with pluggable functions
On Wed, 10 May 2006 16:05:27 +0200, Emmanuel Bernard <[EMAIL PROTECTED]> wrote: public static String renderWhereStringTemplate(String sqlWhereString, Dialect dialect, *SQLFunctionRegistry functionRegistry*) Breaks binary compatibility with Hibernate Annotations 3.2.0.CR1 Damn...but why are you using that from annotations ? In any case, did you not need to rebuild annotations to remove the cglib dependency ? -- -- Max Rydahl Andersen callto://max.rydahl.andersen Hibernate [EMAIL PROTECTED] http://hibernate.org JBoss Inc [EMAIL PROTECTED] --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel