[nhusers] Re: ORACLE supports

2009-03-03 Thread Fabio Maulo
Hi Mike. I'm happy because you can work with new ORACLE dialects... 3 lines talking about your success story would be very appreciates http://nhforge.org/wikis/successstories/success-stories.aspx 2009/3/3 mhanney > > I also switched to the trunk recently to try the new 10g dialect with > 10g Rel

[nhusers] Re: ORACLE supports

2009-03-03 Thread Fabio Maulo
2009/3/3 Nicolai Sørensen > > Just switched our project to the trunk to try the new Oracle dialect > and I must say, it works like a charm with 11g. Very nice job Fabio =) Hi Nicolai. I'm happy because you can work with new dialects... 3 lines talking about your success story would be very appr

[nhusers] Re: ORACLE supports

2009-03-03 Thread Fabio Maulo
BTW all these things mean that we will remove old ORACLE's dialects before release NH2.1.0Alpha2. 2009/3/3 Fabio Maulo > 62 failed ? I have one. > > 2009/3/3 mhanney > > >> I also switched to the trunk recently to try the new 10g dialect with >> 10g Release 2 and I am very happy to report the f

[nhusers] Re: ORACLE supports

2009-03-03 Thread Fabio Maulo
62 failed ? I have one. 2009/3/3 mhanney > > I also switched to the trunk recently to try the new 10g dialect with > 10g Release 2 and I am very happy to report the following test > results: > > 1513 passed, 62 failed, 127 skipped, took 305.27 seconds. > > I am particularly happy to see all Guid

[nhusers] Re: cannot merge detached object

2009-03-03 Thread antoschka
having tried several thinks, I would like to depict my actual problem, so you understand where I'am stuck I have 2 entities which relate to each other 1:n. The mapping contains one-to-many bag. Now I like to do the following EntityA (parent) is ralted to two EntityB (children). - in the current

[nhusers] Re: Mapping file generation tool?

2009-03-03 Thread Ryan Rinaldi
VB can call C# code. I'm not sure I understand your backwards compatibility requirement. -Ryan Rinaldi blog: http://ryanrinaldi.com On Tue, Mar 3, 2009 at 10:53 AM, Robin Nadeau wrote: > It needs to be VB for backwards compatibility. > > > On Tue, Mar 3, 2009 at 11:45 AM, Brandon Beheens > w

[nhusers] Re: ORACLE supports

2009-03-03 Thread mhanney
I also switched to the trunk recently to try the new 10g dialect with 10g Release 2 and I am very happy to report the following test results: 1513 passed, 62 failed, 127 skipped, took 305.27 seconds. I am particularly happy to see all Guid Type tests passing. Awesome. Here is my config...

[nhusers] Re: Validator messages

2009-03-03 Thread Dario Quintana
Next week (after exams) I'll have a look to the interpolator and review this topic. On Tue, Mar 3, 2009 at 7:46 AM, Marc Climent wrote: > > Sorry, I meant the possibility of specifying a custom Resource bundle > to override some default messages with localization. > > Finally I am creating my ow

[nhusers] Re: ArgumentOutOfRangeException : Index was out of range.

2009-03-03 Thread Jan Van Ryswyck
I've tried this with SQL CE and it practically gives me the same error: System.IndexOutOfRangeException : An SqlCeParameter with ParameterIndex '5' is not contained by this SqlCeParameterCollection. The error occurs when NH tries to insert a CatalogItem in the database: public class Catalog

[nhusers] cannot merge detached object

2009-03-03 Thread antoschka
Hi, I detached an object from a session using evict, removed it from foreign collections pointing to this object, changed one of it's attributes (of course not it's id) I tried several ways of reattaching it to the session to save the changes: - SaveOrUpdate(detachedObject) - Lock(detachedObject,

[nhusers] Re: Possible SQL Server bug

2009-03-03 Thread Fabio Maulo
Try to fix it hahahaha.If your boss want use SQL he should say something to you because you are using "SELECT *" instead a SELECT with all field explicitly. NH give you the facility to do the work for you writing {alias.*}... As last... your boss want you write SQL ? well do it, and don't use NH f

[nhusers] Re: Possible SQL Server bug

2009-03-03 Thread Bill Barry
Pointy Haired Boss Robin Nadeau wrote: > I can't quite remember what PHB means, but it's from Dilbert. > > On Tue, Mar 3, 2009 at 3:53 PM, Tuna Toksoz > wrote: > > doh! what's phb anyway? > --~--~-~--~~~---~--~~ You received this mes

[nhusers] Re: Possible SQL Server bug

2009-03-03 Thread Robin Nadeau
I can't quite remember what PHB means, but it's from Dilbert. On Tue, Mar 3, 2009 at 3:53 PM, Tuna Toksoz wrote: > doh! what's phb anyway? > > > Tuna Toksöz > http://tunatoksoz.com > http://turkiyealt.net > http://twitter.com/tehlike > > Typos included to enhance the readers attention! > > > > O

[nhusers] Re: Possible SQL Server bug

2009-03-03 Thread Tuna Toksoz
doh! what's phb anyway? Tuna Toksöz http://tunatoksoz.com http://turkiyealt.net http://twitter.com/tehlike Typos included to enhance the readers attention! On Tue, Mar 3, 2009 at 10:50 PM, Robin Nadeau wrote: > I want to use HQL or criteria API, but PHBs insist we stick with native > SQL. H

[nhusers] Re: Possible SQL Server bug

2009-03-03 Thread Robin Nadeau
I want to use HQL or criteria API, but PHBs insist we stick with native SQL. How difficult would this be to fix in the provider for sql server? Thanks for your response. On Tue, Mar 3, 2009 at 3:36 PM, Fabio Maulo wrote: > I mean... If you want a pure SQL don't use SetMaxResults or SetFirstResul

[nhusers] Re: Possible SQL Server bug

2009-03-03 Thread Fabio Maulo
I mean... If you want a pure SQL don't use SetMaxResults or SetFirstResult, write the full SQL by your self. If you want NH doing something, write the SQL in a way NH can understand how work with it. 2009/3/3 Fabio Maulo > sure it fail.You should use H-SQL if you want that NH do something with >

[nhusers] Re: Possible SQL Server bug

2009-03-03 Thread Fabio Maulo
sure it fail.You should use H-SQL if you want that NH do something with your SQL or you should use HQL or Criteria. SELECT {u.*} FROM USER {u} ORDER BY id desc") For H-SQL : http://nhforge.org/doc/nh/en/index.html#manipulatingdata-nativesql 2009/3/3 Robin Nadeau > In NHibernate 2.0 using SQL S

[nhusers] Criteria and inheritance: Expression.Eq using the subclass's alias for the where statement!

2009-03-03 Thread Scott Belchak
I am stumped. I've been over this too many times and it's time for some extra eyes on my problem. I'm using FluentNHibernate for my mappings. The problem that I am having is that when I am querying my League table for a League that has a specified ID, the generated SQL tries to match the ID up wi

[nhusers] Possible SQL Server bug

2009-03-03 Thread Robin Nadeau
In NHibernate 2.0 using SQL Server 2008, if I create a query such as: Session.CreateSQLQuery("SELECT * FROM USER ORDER BY id desc").AddEntity(typeof(User).SetMaxResults(100).SetFirstResult(1).List(); Then the sql statement fails. -- Robin Nadeau, B.Eng. Software Developer --~--~-~--~---

[nhusers] Re: Validator messages

2009-03-03 Thread s_tristan
Can you share this Interpolator? On 3 мар, 11:46, Marc Climent wrote: > Sorry, I meant the possibility of specifying a custom Resource bundle > to override some default messages with localization. > > Finally I am creating my own Interpolator that works like the > DefaultInterpolator but tries t

[nhusers] Re: Mapping file generation tool?

2009-03-03 Thread Robin Nadeau
It needs to be VB for backwards compatibility. On Tue, Mar 3, 2009 at 11:45 AM, Brandon Beheens wrote: > Why does your mapping Nh project have to be vb? They are really just poco > classes. Have you looked at fluent nhinernate? > > Brandon BehrensPrinciple Software Engineer > TidalTV > Http://w

[nhusers] Re: Mapping file generation tool?

2009-03-03 Thread Brandon Beheens
Why does your mapping Nh project have to be vb? They are really just poco classes. Have you looked at fluent nhinernate? Brandon Behrens Principle Software Engineer TidalTV Http://www.TidalTV.com bran...@tidaltv.com (512) 659-7171 (c) On Mar 3, 2009, at 10:27 AM, Robin Nadeau wrote: > I'm t

[nhusers] Mapping file generation tool?

2009-03-03 Thread Robin Nadeau
I'm trying to find a tool for generating mapping files and objects from the database, I've only found mygeneration, however I cannot find any mygeneration template that generates VB.NET code and mapping files for NHibernate 2.0. Anybody have suggestions? -- Robin Nadeau, B.Eng. Software Developer

[nhusers] Re: When/how does NHibernate check its 1st level cache?

2009-03-03 Thread CassioT
I'm just curious. Do you have a lot of entities that have the same property? In your example you used surname. On Mar 2, 9:41 am, Graham Bunce wrote: > Hiya, > > A developer on my team raised an issue today and it threw me a little > as the behaviour he reported wasn't was I was expecting. > >

[nhusers] Re: NHibernate - probably a bug

2009-03-03 Thread Max Rezanov
Hello DouglasMendes, Tuesday, March 3, 2009, 5:13:45 PM, you wrote: D> type="System.DateTime" not-null="true" /> D> class="Alcoa.Pes.Net.Domain.Entities.User" /> D> type="System.DateTime" not-null="true" /> D> null="true" class="Alcoa.Pes.Net.Domain.Entities.User" /> count

[nhusers] NHibernate - probably a bug

2009-03-03 Thread DouglasMendes
Hi Everyone, I'm developing a simple page with a parent entity which have a collection (saved in a separate table). I'm using Oracle (System.Data.OracleClient). But it returns me a strange exception (details below). I searched for a solution on the internet but didn't find. Could you guys please

[nhusers] Re: Working under trust level=medium

2009-03-03 Thread Fabio Maulo
You can use NHibernate.ProxyGenerator (for Castle DynamicProxy2).From the wiki http://nhforge.org/wikis/proxygenerators10/default.aspx you can access to all available informations and to the prj Download (the project is hosted in NHibernate Contrib) 2009/3/3 ilker > > Hi, > > Is there any examp

[nhusers] Re: ORACLE supports

2009-03-03 Thread Nicolai Sørensen
Just switched our project to the trunk to try the new Oracle dialect and I must say, it works like a charm with 11g. Very nice job Fabio =) On 5 Feb., 04:19, Fabio Maulo wrote: > 2009/2/4 mhanney > > > > > More is the pity. Unfortunately for some - Oracle is still around. > > Not only still aro

[nhusers] Working under trust level=medium

2009-03-03 Thread ilker
Hi, Is there any example nh works under asp.net permission. (especially with burrow.) It's necessery on the shared hosting environment. BTW : I tried settings and all assemblies have AllowPartiallyTrustedCallers attribute. Thanks. --~--~-~--~~~---~--~~ You rec

[nhusers] Existence queries on a many-to-many mapping

2009-03-03 Thread John Rayner
In my domain I have a Company entity which has a many-to-many mapped collection of SicCode object. In C#: public class Company { public IList SicCodes { get; set; } } In hbm.xml: Now I would like to be able to query this mapping using the SQL Ex

[nhusers] Auditing Many-To-Many

2009-03-03 Thread Todd
Hi I have been working on auditing for an application and I can do most things using Interceptors however I can't see how to audit many to many tables as there isn't a domain object for the mapping table. I need to be able to audit creates, updates and deletes in this table and cannot use trigger

[nhusers] Re: Validator messages

2009-03-03 Thread Marc Climent
Sorry, I meant the possibility of specifying a custom Resource bundle to override some default messages with localization. Finally I am creating my own Interpolator that works like the DefaultInterpolator but tries to get the messages from the local resources for some default validators and for m

[nhusers] Re: Linq to NHibernate : Replicating SQL Query

2009-03-03 Thread Chris
Cheers guys worked a treat On Mar 2, 5:39 pm, Tuna Toksoz wrote: > Absolutely. > > Tuna > Toksözhttp://tunatoksoz.comhttp://turkiyealt.nethttp://twitter.com/tehlike > > Typos included to enhance the readers attention! > > > > On Mon, Mar 2, 2009 at 7:36 PM, Bill Barry wrote: > >  better? > > v