I think your best option is to refactor, either by fixing the HQL strings or by creating an ISession extension method to replace CreateQuery. In both cases you could use regular expressions to do a bit of crude parsing.
2015-10-06 11:56 GMT+02:00 Anil Khanna <[email protected]>: > Hi All, > > We are looking at the opportunity to migrate from NH 1.2 to NH 4.0.4. Yes > there was a long gap, but we know business ways are different from the > technical ones. > > One of the breaking changes that we see is that Outer Joins structure of > (+) is not supported any more. > > Earlier the following construct worked very well. - SELECT A.ID, B.NAME > FROM T1 A, T2 B WHERE A.ID (+)= B.ID AND A.CODE(+)=:code > > However now the parser throws an unrecognized pattern error. (ANTLR has > been introduced which was not present in NH 1.2) > > I have read some documentation and all of them say that we have to use the > key words "outer join" (left / right) to get this working - in a particular > way. > > We have more than 3000 such <(+)> constructs and was wondering if there is > a way to get this working without refactoring the existing code. > > Thanks for your help in advance. > > Regards, > > Anil > > > -- > You received this message because you are subscribed to the Google Groups > "nhusers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/nhusers. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "nhusers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/nhusers. For more options, visit https://groups.google.com/d/optout.
