[nhusers] Problem using Unity as a reflection optimizer and changing a one-to-many to a composite-element mappings

2009-08-24 Thread Dawid
Hi, I've written some code to use Unity as a DI container inside NHibernate and all seemed to be well. Today I tried to change a one-to-many mapping to a composite-element inside a bag and I now get an exception in NHibernate.Tuple.PocoInstantiator.Instantiate stating that the entity has no

[nhusers] Re: Problem using Unity as a reflection optimizer and changing a one-to-many to a composite-element mappings

2009-08-24 Thread Dawid
I haven't shared it yet, but it is based on bits and pieces of code blog posts that I've put together. Where and or how can I share? On Aug 24, 8:05 am, Fabio Maulo fabioma...@gmail.com wrote: where you have shared your code about the reflection optimizer using Unity ? 2009/8/23 Dawid dmost

[nhusers] Linq and UserType

2010-07-01 Thread Dawid
Hi, I'm trying out the new Linq provider, and everything is going well except when I'm using classes that is mapped as IUserType. My queries work when using criteria, but fails under linq with Could not determine a type for class: OldMutual.SalesGear.Domain.Work.WorkItems.Info.Category,

[nhusers] Re: Using José's Net4Collections

2012-07-12 Thread Dawid Ciecierski
(Net4CollectionTypeFactory).AssemblyQualifiedName)) .BuildSessionFactory() Any idea what might be causing this? Best regards, Dawid Ciecierski On Wednesday, May 11, 2011 10:30:25 PM UTC+2, Ted P wrote: José your code is working just fine. I wasn't doing my ConfOrm:ing properly. :) Thanks

Re: [nhusers] Re: Using José's Net4Collections

2012-07-12 Thread Dawid Ciecierski
()? Has anyone used Net4Collections with Fluent and can confirm that it works? Regards, Dawid On Thursday, July 12, 2012 6:13:32 PM UTC+2, SexualChocolate wrote: I'm not sure what you're doing specifically in here: .Mappings(m = m.FluentMappings.AddFromAssemblyOf

Re: [nhusers] Re: Using José's Net4Collections

2012-07-12 Thread Dawid Ciecierski
to document that for posterity. Regards, Dawid On Thursday, July 12, 2012 6:13:32 PM UTC+2, SexualChocolate wrote: I'm not sure what you're doing specifically in here: .Mappings(m = m.FluentMappings.AddFromAssemblyOf NhibernateDatabaseConfiguration()); I suspect that fluent isn't recognizing

Re: [nhusers] Re: Using José's Net4Collections

2012-07-13 Thread Dawid Ciecierski
, Dawid Ciecierski dawid.ciecier...@gmail.com wrote: As a side note, it seems that this has been discussedhttps://groups.google.com/d/topic/fluent-nhibernate/QM-X6_59rGg/discussionon Fluent NHibernate group back in 2011... should have looked more closely. Will try to see what solutions

[nhusers] Mapping superclass properties when using implicit polymorphism

2012-08-29 Thread Dawid Ciecierski
polymorphism? If it is the latter, how do I do that with Loquacious? Kind regards, Dawid Ciecierski -- You received this message because you are subscribed to the Google Groups nhusers group. To view this discussion on the web visit https://groups.google.com/d/msg/nhusers/-/myDnPNC1ygkJ. To post

[nhusers] Re: Mapping superclass properties when using implicit polymorphism

2012-10-31 Thread Dawid Ciecierski
Hello again, We're closer to product completion, and are coming across this issue again. Would love to know if the above is by design, and how we may be able to overcome the problem with ComposedId made up of superclass properties. Will be grateful for any advice at all. Regards, Dawid

Re: [nhusers] Re: Mapping superclass properties when using implicit polymorphism

2012-11-05 Thread Dawid Ciecierski
are mapped properly. Thank you again for your help! Dawid Ciecierski On Wednesday, October 31, 2012 3:53:45 PM UTC+1, aje...@gmail.com wrote: Dawid, It sounds like a bug to me too, which actually would not be terribly surprising. In general, I've found that features that stray from

Re: [nhusers] Re: Mapping superclass properties when using implicit polymorphism

2012-11-06 Thread Dawid Ciecierski
to be pulled that way, but there it is just in case it makes someone's life easier. Best regards, Dawid On Monday, November 5, 2012 4:05:45 PM UTC+1, aje...@gmail.com wrote: Dawid, That's great that you were able to figure it out, and thank you for getting back to the group with your find

[nhusers] Re: ON DELETE CASCADE for a collection of values

2014-05-15 Thread Dawid Ciecierski
management methods, but fails when a simple DELETE is issued against the database. Dawid On Thursday, May 15, 2014 12:58:12 PM UTC+2, Ricardo Peres wrote: I have a similar mapping - Post and Tag - where one Post can have several tags, which are just strings (sorry, don't have time to change

[nhusers] Force FetchMany in some cases

2014-05-15 Thread Dawid Ciecierski
but not too sure where and what to look for. (Would I be correct to say that a LINQ query is later translated into HQL, and therefore it would be best to transform the HQL rather than just the LINQ expression to have maximum coverage — both LINQ and HQL queries?) Regards, Dawid Ciecierski -- You

[nhusers] Re: ON DELETE CASCADE for a collection of values

2014-05-15 Thread Dawid Ciecierski
case, perhaps there is a way to force the same behaviour in an even more (IMHO) straight-forward instance. Dawid On Thursday, May 15, 2014 6:27:28 PM UTC+2, Ricardo Peres wrote: Meaning: if you want to have cascade actions on the database, you have to add them yourself, maybe using auxiliary

[nhusers] Re: Force FetchMany in some cases

2014-05-15 Thread Dawid Ciecierski
. Dawid On Thursday, May 15, 2014 7:10:25 PM UTC+2, Ricardo Peres wrote: There's the FetchMode, for which you can specify CollectionFetchMode.Join. RP On Thursday, May 15, 2014 5:31:56 PM UTC+1, Dawid Ciecierski wrote: Hello, I'm wondering if there is an extensibility point in NHibernate

[nhusers] Re: ON DELETE CASCADE for a collection of values

2014-05-15 Thread Dawid Ciecierski
Meant to link to Stack Overflow but forgot: here is the question and explanationhttp://stackoverflow.com/questions/4468571/nhibernate-mapping-not-adding-on-delete-cascade-option-to-foreign-key-referenceI wanted to mention. On Thursday, May 15, 2014 6:38:48 PM UTC+2, Dawid Ciecierski wrote

[nhusers] Re: Force FetchMany in some cases

2014-05-16 Thread Dawid Ciecierski
, and their execution results in exceptions. If I can confirm this with more poking around, I'll try to come up with unit tests that demontrate the above later today and raise an issue on JIRA in hopes of having this resolved before 4.0 RTMs. Dawid On Thursday, May 15, 2014 10:50:48 PM UTC+2, Dawid

[nhusers] Re: Force FetchMany in some cases

2014-05-16 Thread Dawid Ciecierski
explicitly fetch the items/collections you want. RP On Friday, May 16, 2014 11:25:12 AM UTC+1, Dawid Ciecierski wrote: Funny that — with further testing of the different querying strategies I came across some pretty strange behaviour: configured collection fetch strategies honoured only in some

[nhusers] Re: Force FetchMany in some cases

2014-05-17 Thread Dawid Ciecierski
help in fixing this. On Friday, May 16, 2014 1:00:14 PM UTC+2, Dawid Ciecierski wrote: If this is the case, then why do they attempt to honour CollectionFetchMode.Subselect? The HQL and LINQ providers not honouring some of the mappings behaviour does not seem to be mentioned

[nhusers] Collection items inserted before parent update

2014-09-11 Thread Dawid Ciecierski
. Hence hoping that NH masters will have more ideas as to why this is happening! Will be grateful for any and all input that brings us a little closer to a solution. (Class definitions and mappings can be found on StackOverflow.) Regards, Dawid Ciecierski -- You received this message because you

[nhusers] Re: Collection items inserted before parent update

2015-01-07 Thread Dawid Ciecierski
Anyone? :-) Still having this problem and not sure how to proceed. Will be grateful for any and all ideas! Regards, Dawid On Thursday, September 11, 2014 6:30:30 AM UTC+2, Dawid Ciecierski wrote: This is a cross-post from StackOverflow, but doing it only because the original question did

Re: [nhusers] Re: Collection items inserted before parent update

2015-01-07 Thread Dawid Ciecierski
elements would fall under collection elements (step 4), while child entities should be serviced by step 3 + step 5. Regards, Dawid On Wednesday, January 7, 2015 2:20:54 PM UTC+1, Oskar Berggren wrote: Are you calling Save() or similar on the new Profile? Otherwise, it might be that Profile

Re: [nhusers] Re: Collection items inserted before parent update

2015-01-07 Thread Dawid Ciecierski
time later today to test this on good old Sessions and perhaps come back with a sample solution if NH still does not behave correctly. Regards, Dawid On Wednesday, January 7, 2015 6:38:17 PM UTC+1, Ricardo Peres wrote: TransactionScope has some (OK, a lot of) problems with NHibernate