Here are the last few lines of the exception stack trace:
NHibernate.Hql.Ast.ANTLR.HqlParser.RecoverFromMismatchedToken(Antlr.Runtime
.IIntStream
input =
{selectdistinctfmfromReceivedFaxfjoinf.ReceivingFaxMachinefmwherefm.Deactiv
ated=:deactivatedandf.Statusin(:new,:detached)},
int ttype = 123, A
This is not possible. Once the expression tree parser hits a method
call - in this case IEqualityComparer.Equals - it stops. Try doing a
multiline statement in queryable.Where(), build your project and you
will see why. You will either have to a) use the PK in your comparison
b) use composite-id fo
which is the full message of the exception ?
On Fri, Dec 10, 2010 at 6:45 PM, Aaron Boxer wrote:
> var hql = "select distinct fm from ReceivedFax f"
>+ " join f.ReceivingFaxMachine fm "
>+ " where fm.Deactivated = :deactivated"
>
var hql = "select distinct fm from ReceivedFax f"
+ " join f.ReceivingFaxMachine fm "
+ " where fm.Deactivated = :deactivated"
+ " and f.Status in (:new, :detached)";
It's causing the ANTLR HQL parser
Yes, it uses the interface IEqualityComparer.
On Dec 10, 12:18 pm, Fabio Maulo wrote:
> Is ItemEqualityComparer a custom function inside your RDBMS ?
>
>
>
>
>
> On Fri, Dec 10, 2010 at 1:53 PM, Scott wrote:
> > This worked with the old Linq provider, no dice on the new one.
>
> > Basically try
Is ItemEqualityComparer a custom function inside your RDBMS ?
On Fri, Dec 10, 2010 at 1:53 PM, Scott wrote:
> This worked with the old Linq provider, no dice on the new one.
>
> Basically trying to use my own IEqualityComparer
>
> Here's what I'm doing:
>
> //Some in memory list of items
> List
For more detail, I want to do something like this
IQuery query = session.CreateQuery("from BaseClass bc" +
" where subclass.UniqueToSubclass like :keyword");
query.SetString("keyword", keyword);
obviously I will switch it to freetext instead of like to utilize full
te
This worked with the old Linq provider, no dice on the new one.
Basically trying to use my own IEqualityComparer
Here's what I'm doing:
//Some in memory list of items
List itemList = new List(){ new Item(1), new Item(2), new
Item(3) };
var result = (from subI in _session.Query()
where itemLi
I concur with "cremor" that this is clearly a bug regardless of what
identity method or presentation layer design are used because the
behavior of IsDirty does not match its description. The description of
IsDirty indicates this:
"Does this ISession contain any changes which must be synchronized
w
You'll want to take a look at the event listeners then.
NH doesn't rule everything, it simply coordinates database operations,
so you don't have too. if the state of the domain changes, Nh will
propagate those changes for you. If you want to modify the state of
the domain without modifying the data
So will wait when Remotion will implement this feature
Here's our JIRA entry for this feature:
https://www.re-motion.org/jira/browse/RM-3551.
I hope to implement it some time around Christmas, but can't promise
anything.
Regards,
Fabian
--
You received this message because you are subscribe
Im working with a framework, where NHibernate is not king and ruling
everything. So this developer would be very happy if NH could be so kind ;-)
We have different kind of interceptors, where it would be really nice and
handy if NH could expose this knowledge, so we could invoke a specific kind
of
these are lower level concerns within NH that a developers shouldn't
need to think about. the session itself implements an identity map
which is responsible for ensuring exactly 1 instance of an entity
exists per session.
Get() and Load() use the identity map to determine if the entity is
already
Hi there,
Hope one of you can help me with 2 questions:
1) How do I ask a session if a specific entity is dirty / has changed?
2) Will ISession.Contains(entity) return true for any session-tracked
entity, no matter how the entity was loaded / queried / retrieved?
--
You received this message b
When rebuilding NH with Remotion - 1.13.85
exception has changed to
Internal in debugger:
"No corresponding expression node type was registered for
method 'System.Linq.Queryable.SelectMany'.
Returned to browser:
Could not parse
expression
'value(NHibernate.Linq.NhQueryable`1[FRPT.TestXModule.BL.
Hello!
I am looking at the cache code, and I must be missing something,
but I can't see where the query cache
is locked during Puts. It doesn't seem to use a cache concurrency
strategy, and yet multiple sessions may access it.
Somebody, please shed some light here.
Thanks,
Aaron
--
You receive
which is the schema creation script generated by NH?
are you creating the schema using NH?
--
Fabio Maulo
El 10/12/2010, a las 04:54, Ex_Soft <4othe...@gmail.com> escribió:
>> 11000
>
>
> import="true">
>
>
>
>
>
>
>
> length="11000" not-null="false" />
>
>
I believe if you are getting this error that it is a mapping problem.
I wrote a blog about what I was doing and how I resolved my specific
problem here:
http://www.thebestcsharpprogrammerintheworld.com/blogs/With-clause-referenced-two-different-from-clause-elements.aspx
--
You received this messa
I am running exactly into same issue.
Is there already a bug for this?
Thanks, Stefan
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to nhus...@googlegroups.com.
To unsubscribe from this group, send email to
nhuse
Thanks Fabio
lol I had looked on the source forge page and didn't find it, then on
looking again I managed to find them (hangs head in shame). Anyway I
have got updated my application to use the nh 3.0.0GA and I am still
getting the error message. So is there perhaps a bug in the new
version of nhi
Hi People,
I have a wierd issue with extra updates being issues to the Database
in an application I'm mucking around with.
I have a following entity structure:
public abstract class DomainEntity
{
public virtual TId Id { get; protected set; }
public virtual int Version {
21 matches
Mail list logo