[nhusers] Re: NHibernate in Medium Trust

2009-07-16 Thread Josh Rogers
f Ayende's and Fabio's and Gabriel's blog posts... > > 2009/7/16 Josh Rogers >> >> Are you serious?  I clearly stated that this is not saying anything >> bad about NH as MOST OPEN SOURCE PROJECTS SUFFER THE SAME LACK OF >> DOCUMENTATION.  I am not going

[nhusers] Re: NHibernate in Medium Trust

2009-07-16 Thread Josh Rogers
ou can > always by the Manning book. I had to go through the Manning Hibernate (Java) > book, but even this shows how to solve common NH problems. > > And using "pronto" in german means: DO IT RIGHT NOW AND CALL ME SIR! > (capitalization intended) > > 2009/7/16 Josh Roge

[nhusers] Re: NHibernate in Medium Trust

2009-07-16 Thread Josh Rogers
s and tells you to do >> something "pronto". >> >> If you also look at the reason, that he can't compile NH because of having >> VS Express, then all you know is that the person in question is not able to >> read howtobuild.txt or readme.txt or

[nhusers] Re: NHibernate in Medium Trust

2009-07-15 Thread Josh Rogers
All he was trying to do is make a valid suggestion, while it may have been boisterous, I do not understand the irradic barrage of belittiling comments and answers from you Fabio. There is no one that will say the learning curve for NH is anything less than steep, yet you treat question po

[nhusers] Re: How do I check for duplicates without messing up session/cache?

2009-07-15 Thread Josh Rogers
Could you elaborate? I do not want anything to commit when I check for a duplicate. On Wed, Jul 15, 2009 at 3:44 PM, Fabio Maulo wrote: > FlushMode.Commit > > 2009/7/15 Josh Rogers >> >> I have multiple situations within my system where my user enters data >> that may

[nhusers] How do I check for duplicates without messing up session/cache?

2009-07-15 Thread Josh Rogers
I have multiple situations within my system where my user enters data that may be duplicate in the db. I need to know how to check for duplicates without messing up the sessions and the cache. Since Get and CreateCriteria both cause a flush, how would you go about doing this? Thanks, Josh --~-

[nhusers] Re: Length attribute in property element

2009-07-14 Thread Josh Rogers
e good developers lived you automagically ignoring that there > is a big problem...IMHO. > it's like the glorious try { } catch { // do nothing } > Your code does not break, but...wait you really did want that? > Gustavo. > > On Tue, Jul 14, 2009 at 10:19 PM, Josh Rogers wro

[nhusers] Re: Length attribute in property element

2009-07-14 Thread Josh Rogers
> Från: nhusers@googlegroups.com [nhus...@googlegroups.com] för Josh > Rogers [joshlrog...@gmail.com] > Skickat: den 14 juli 2009 20:11 > Till: nhusers@googlegroups.com > Ämne: [nhusers] Length attribute in property element > > I am curious as to whether this serves any purpose?  I

[nhusers] Length attribute in property element

2009-07-14 Thread Josh Rogers
I am curious as to whether this serves any purpose? I just recently had an issue where I was trying to push a string that was too long into a column. I knew it was too long but I made sure the Length attribute was set to the desired length assuming (which I should not have done) that NHibernate

[nhusers] Re: Session Cache isn't working the way I thought it did.

2009-07-02 Thread Josh Rogers
John, I would love to do that, but I don't know what code would be helpful here. All of it is quite trivial really. As far as the exception it is also quite uninformative, here it is: System.NullReferenceException was caught Message="Object reference not set to an instance of an object." Sou

[nhusers] Re: Session Cache isn't working the way I thought it did.

2009-07-02 Thread Josh Rogers
For future reference I would like to know how I could have handled this situation using NHibernate, so if you'll bear with me I'll give you a brief synopsis of what I am trying to achieve. This is a transportation/logistics application. User creates or opens a job A job for these purposes contain

[nhusers] Re: Session Cache isn't working the way I thought it did.

2009-07-01 Thread Josh Rogers
e, it was greatly appreciated and I truly did learn a lot of new things. Thank you, Josh On Wed, Jul 1, 2009 at 3:31 PM, Fabio Maulo wrote: > 2009/7/1 Josh Rogers > >> >> As far as the POID strategy I am using the db generated ID that increments >> by 1 each time a new

[nhusers] Re: Session Cache isn't working the way I thought it did.

2009-07-01 Thread Josh Rogers
> "conversation" we must know the POID strategy you are using. > > 2009/7/1 Josh Rogers > > I don't know if cache is the right terminology, but it is the best I could >> think of. >> >> I am adding an object to a conversation by calling >> SessionF

[nhusers] Session Cache isn't working the way I thought it did.

2009-07-01 Thread Josh Rogers
I don't know if cache is the right terminology, but it is the best I could think of. I am adding an object to a conversation by calling SessionFactory.GetCurrentSession().Save (which works), but later I need to retrieve that object but I do not know the id however I do know certain attributes of

[nhusers] Re: Session Management Issues

2009-06-25 Thread Josh Rogers
antiate >> uNhAddIns.SessionEasier.Conversations.NhConversationsContainerAccessor"} >> with a message of: >> "ComponentActivator: could not proxy TEAMSData.DALs.JobDal" >> >> I am getting the instance through this command: >> >> IJobDal test

[nhusers] Re: Session Management Issues

2009-06-24 Thread Josh Rogers
Fabio, I am not scared of IoC/AOP (well the MSIL code scared me for the AOP) but I fully admit I don't understand it. I am trying but I am beginning to wonder if I am just not able to grasp the concepts. My struction is this: winForm -> Logic Layer -> DAL -> NH -> DB I am sure the CpBT would w