Re: NHibernate - Using OpenSession() inside another OpenSession()

2009-06-04 Thread Tuna Toksoz
Can you send me an example project with the expected and actual behavior? Tuna Toksöz Eternal sunshine of the open source mind. http://devlicio.us/blogs/tuna_toksoz http://tunatoksoz.com http://twitter.com/tehlike On Thu, Jun 4, 2009 at 1:56 PM, gusgorman augustusgor...@yahoo.co.ukwrote:

Re: NHibernate - Using OpenSession() inside another OpenSession()

2009-06-04 Thread gusgorman
Can you send me an example project with the expected and actual behavior? Hello, I just sent you a project via the contact form on http://tunatoksoz.com . many thanks, Jordan. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Single Table Inheritance issue, HasMany Relationship, Discriminator not displayed in SQL Statement

2009-06-04 Thread Markus Zywitza
Out of my head, I cannot say whether it is an AR or NH bug. Usage seems ok. Workaround is using the Where-property as shown below. Please open a Donjon-issue on this. -Markus [HasMany(typeof(Photo), Table=Image, ColumnKey=CountryId, Inverse=true,

Re: NHibernate - Using OpenSession() inside another OpenSession()

2009-06-04 Thread Tuna Toksoz
I hope this solves your problem. Tuna Toksöz Eternal sunshine of the open source mind. http://devlicio.us/blogs/tuna_toksoz http://tunatoksoz.com http://twitter.com/tehlike On Thu, Jun 4, 2009 at 3:40 PM, Tuna Toksoz tehl...@gmail.com wrote: Alright, found the problem. You should change

ActiveRecord NHibernate Exception

2009-06-04 Thread Juan Carlos Seguí - CAE
Hi all, I've an assembly for all of my models that maps to two different databases using ActiveRecord. This assembly is called from a console application for testing purposes. All is fine if I only use ActiveRecord, but as soon as I use some data type from NHibernate namespace the console

Re: NHibernate - Using OpenSession() inside another OpenSession()

2009-06-04 Thread jobsamuel
I am surprised, I am using exactly the same scenario and it works fine for me. I am sure it is either an environment or a config issue. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Castle Project Users group. To

Re: Multiple HasMany Relationships to a Single Entity (Schema Generation)

2009-06-04 Thread Jason Sznol
I don't want to start a new topic regarding this but I was able to fix my problem. By putting a HasAndBelongsToMany Attribute on my three entities owning the last entity, I was able to force ActiveRecord and hbm2ddl to use a join table so the schema looks like this (ParentEntityTable x

Re: ActiveRecord NHibernate Exception

2009-06-04 Thread Juan Carlos Seguí - CAE
Hi Again, This is the NullReferenceException Stack trace: en System.Collections.Generic.List`1.Add(T item) en Castle.ActiveRecord.Framework.Config.InPlaceConfigurationSource.ConvertToConfiguration(IDictionary`2 properties) en

Re: Issue with ResolveT(String key, IDictionary arguments)

2009-06-04 Thread Craig Neuwirt
That is the expected behavior to eliminate undesired and/or unexpected consequences. On Thu, Jun 4, 2009 at 9:56 AM, AndyKnight andym.kni...@googlemail.comwrote: Hey everyone, When using the ResolveT(String key, IDictionary arguments) function in Windsor, will the dictionary arguments only

Re: Issue with ResolveT(String key, IDictionary arguments)

2009-06-04 Thread Germán Schuager
http://groups.google.com/group/castle-project-users/browse_thread/thread/69648838fa72d69a?hl=en On Thu, Jun 4, 2009 at 12:11 PM, Andyk andym.kni...@googlemail.com wrote: Oh dear. That'll cause abit of a rewrite in my code! So is the only recommendation to pass the session down through

Re: Issue with ResolveT(String key, IDictionary arguments)

2009-06-04 Thread Craig Neuwirt
On Thu, Jun 4, 2009 at 10:11 AM, Andyk andym.kni...@googlemail.com wrote: Oh dear. That'll cause abit of a rewrite in my code! That is the primary reason I use the scope based solutions (ActiveRecord, Rhino Common UoW) since it solves that problem So is the only recommendation to pass

Re: ActiveRecord NHibernate Exception

2009-06-04 Thread Juan Carlos Seguí - CAE
More info: It seems that as soon as I use a date type from the NHibernate namespace, when I call Juan Carlos Seguí - CAE escribió: XmlConfigurationSource config = new XmlConfigurationSource(nhibernate.config); It somehow calls internally InPlaceConfigurationSource. In