Re: [fluent-nhib] Re: Fluent NHibernate - unit-testing a one-to-many *inverse* mapping

2009-12-02 Thread Paul Batum
Ahh, so the parameters are just swapped around. I hoped I'd just missed something simple like that. Thanks for sorting us out Alexander. 2009/12/3 Alexander Groß > It is. > > > > -- > > Alexander Groß > > http://therightstuff.de/ > > > > *From:* cliff vaughn [mailto:cliftonfvau...@gmail.com] > *

RE: [fluent-nhib] Re: Fluent NHibernate - unit-testing a one-to-many *inverse* mapping

2009-12-02 Thread Alexander Groß
It is. -- Alexander Groß http://therightstuff.de/ From: cliff vaughn [mailto:cliftonfvau...@gmail.com] Sent: Wednesday, December 02, 2009 7:36 PM To: fluent-nhibernate Subject: Re: [fluent-nhib] Re: Fluent NHibernate - unit-testing a one-to-many *inverse* mapping i haven't checked th

Re: [fluent-nhib] Set Attribute Removal??/

2009-12-02 Thread James Gregory
Composite Ids have been supported for a very long time, what about them can't you do? Use CompositeId() in your ClassMap. Tell us what the missing attributes are and we'll add them, but we've nailed 95% of them all. The concept of SetAttribute just doesn't work any more, because the entire implem

[fluent-nhib] Set Attribute Removal??/

2009-12-02 Thread Andrew Ryan
>From the release notes: •Removed SetAttribute - SetAttribute was a stop-gap measure to allow people to use Fluent NHibernate when we didn't support the attributes they needed. We've now gone to a great length to support all of the main attributes in the fluent interface, so you shouldn't need thi

[fluent-nhib] Re: Ignore FormatException

2009-12-02 Thread Chris C
Another thing to be careful of is if you are able to get nhibernate to convert invalid values to null, nhibernate will probably at some point try to persist that back to the database as null removing the value that is in there unless you mark the column as read-only. On Dec 1, 12:00 pm, Asbjørn Ul

Re: [fluent-nhib] Re: Fluent NHibernate - unit-testing a one-to-many *inverse* mapping

2009-12-02 Thread cliff vaughn
i haven't checked the code, but I hope that referral to CheckList is in or added to the comment of the Obsolete attribute on CheckEnumerable. :) On Wed, Dec 2, 2009 at 12:10 PM, Mikael Henriksson wrote: > Thanks Alexander :) > > 2009/12/2 Alexander Groß > > > Its marked as obsolete but I now thi

Re: [fluent-nhib] Re: Fluent NHibernate - unit-testing a one-to-many *inverse* mapping

2009-12-02 Thread Mikael Henriksson
Thanks Alexander :) 2009/12/2 Alexander Groß > > Its marked as obsolete but I now think that was an oversight. If that > sorts > > you out, I'll be sure to see that we remove the obsolete attribute. > > CheckEnumerable is marked obsolete because there is an overload of > CheckList that accepts a

[fluent-nhib] Re: Fluent NHibernate - unit-testing a one-to-many *inverse* mapping

2009-12-02 Thread Alexander Groß
> Its marked as obsolete but I now think that was an oversight. If that sorts > you out, I'll be sure to see that we remove the obsolete attribute. CheckEnumerable is marked obsolete because there is an overload of CheckList that accepts a setter delegate. The signature is basically the same as Ch

Re: [fluent-nhib] mapping a favorite/default item in a list

2009-12-02 Thread James Gregory
Ah, I missed the property-ref bit. That's interesting, I was told by a high authority that properties was only a shortcut for making users lives easier. On Wed, Dec 2, 2009 at 3:01 PM, cliff vaughn wrote: > well, according to the my understanding(which may be flawed) of the site i > provided the

Re: [fluent-nhib] mapping a favorite/default item in a list

2009-12-02 Thread cliff vaughn
well, according to the my understanding(which may be flawed) of the site i provided the url for, it seems to form a "key" of some sort for the formula in the one-to-one mapping to use. Is that incorrect? On Wed, Dec 2, 2009 at 9:57 AM, James Gregory wrote: > Not necessary. AFAIK it's just a conv

Re: [fluent-nhib] mapping a favorite/default item in a list

2009-12-02 Thread James Gregory
Not necessary. AFAIK it's just a convenience property for reducing your XML. On Wed, Dec 2, 2009 at 2:55 PM, cliff vaughn wrote: > Thanks Paul. What about that "properties" element in the Person class? > > 2009/12/2 Paul Batum > > We support One-to-One mappings but that element inside a >> one

Re: [fluent-nhib] mapping a favorite/default item in a list

2009-12-02 Thread cliff vaughn
Thanks Paul. What about that "properties" element in the Person class? 2009/12/2 Paul Batum > We support One-to-One mappings but that element inside a > one-to-one isn't supported in FNH yet. > > > On Wed, Dec 2, 2009 at 5:55 PM, cliff wrote: > >> Hello all, >> >> I've found mappings for Hibe

Re: [fluent-nhib] changing WithTable to Join - Join not working?

2009-12-02 Thread James Gregory
Automapping, right? Can you supply us with how you're configuring the automapper? and any overrides you're doing? On Wed, Dec 2, 2009 at 1:49 PM, Tim wrote: > Hi all, > > We recently upgraded to FluentNHibernate 1.0.0.593, and made the > changes necessary e.g. method name changes, dropping "With

Re: [fluent-nhib] Build for NHibernate 2.1.2.GA

2009-12-02 Thread James Gregory
Not yet, no. It's on the todo list. On Wed, Dec 2, 2009 at 1:41 PM, Oleg Deribas < thisaddressisnotm...@td.selfip.net> wrote: > Hi, > > Is there "official" binary built for NHibernate 2.1.2.GA? > > -- > Oleg > > -- > > You received this message because you are subscribed to the Google Groups > "F

[fluent-nhib] Build for NHibernate 2.1.2.GA

2009-12-02 Thread Oleg Deribas
Hi, Is there "official" binary built for NHibernate 2.1.2.GA? -- Oleg -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to fluent-nhibern...@googlegroups.com. To unsubscribe from this group, send email to

[fluent-nhib] changing WithTable to Join - Join not working?

2009-12-02 Thread Tim
Hi all, We recently upgraded to FluentNHibernate 1.0.0.593, and made the changes necessary e.g. method name changes, dropping "With" etc., However, I'm having problems changing a WithTable join into a Join method. Old way: mapping.WithTable("aspnet_Membership", m => {

[fluent-nhib] Re: Automapping all instances of a component

2009-12-02 Thread Zuber
I am also looking for the same. Any help is appreciated. Thanks On Oct 20, 2:17 am, kujotx wrote: > I am using AutoMapping and am trying to suss out the best practice for > mapping components using conventions. I have seen the wiki convention > usage, but don't see how to map a component. > > Cur

Re: [fluent-nhib] mapping a favorite/default item in a list

2009-12-02 Thread Paul Batum
We support One-to-One mappings but that element inside a one-to-one isn't supported in FNH yet. On Wed, Dec 2, 2009 at 5:55 PM, cliff wrote: > Hello all, > > I've found mappings for Hibernate that i found interesting and would > like to use at http://onjava.com/onjava/2005/08/03/hibernate.html.

Re: [fluent-nhib] Fluent NHibernate - unit-testing a one-to-many *inverse* mapping

2009-12-02 Thread Paul Batum
Try using CheckEnumerable instead of CheckList. You use it roughly like this: _spec.CheckEnumerable(x => x.EnumerableOfKittens, (cat, kitten) => cat.AddKitten(kitten), kittens); Its marked as obsolete but I now think that was an oversight. If that sorts you out, I'll be sure to see that we remov

Re: [fluent-nhib] Illegal attempt to associate a collection with two open sessions

2009-12-02 Thread Paul Batum
Given that your problem appears to be related to session lifetime management and not your entity mappings, I recommend you ask on the nhuserslist. This list is aimed at FNH issues only. On Wed, Dec 2, 2009 at 7:08 PM, senzacionale wrote: > When i am insert

Re: [fluent-nhib] Re: Timestamp properties aren't auto-mapping

2009-12-02 Thread Paul Batum
Hi John, I finally got around to grabbing the tests you wrote for this issue (I think I applied the fix a while back). Just wanted to let you know that they're now on their way into the official trunk. Thanks for writing these! Paul Batum On Thu, Nov 5, 2009 at 12:57 PM, Jon Kruger wrote: > I

[fluent-nhib] Fluent NHibernate - unit-testing a one-to-many *inverse* mapping

2009-12-02 Thread Cristian Diaconescu
I can't figure out how (or if it's at all possible) to use the Fluent NHibernate `PersistenceSpecification.CheckList(...)` method to check an *inverse* one-to-many mapping. Here's what I'm trying to do: Using fluent nhibernate on a vanilla blog/post example, I have defined a one-to-many blog<->po

Re: [fluent-nhib] Index element placed in the wrong order for a map

2009-12-02 Thread James Gregory
Hmm. The code that does the sorting is in here: http://github.com/jagregory/fluent-nhibernate/tree/master/src/FluentNHibernate/MappingModel/Output/Sorting/ Specifically, the sorting starts

[fluent-nhib] Illegal attempt to associate a collection with two open sessions

2009-12-02 Thread senzacionale
When i am inserting into DB everything works, but when i update i get error of "Illegal attempt to associate a collection with two open sessions". I use transaction, but if i do not have for example userDao.CommitChanges(); nothing is stored to DB, but if i use userDao.CommitChanges(); then i get p