[nhusers] Re: NH 3 Linq Query with Contains(IQueryable) clause

2010-12-02 Thread Stefan Wenig
Use the Jira-Link to track it. When finished, someone needs to update the re-linq assembly in NH. HTH, Stefan On 1 Dez., 22:03, Meir meir...@gmail.com wrote: Is there an update on this? I running into the same problem with the latest NH 3.0-CR1. Thanks! Meir On Nov 11, 5:39 am, Stefan

[nhusers] Re: Aggregate Root and Nhibernate Identifiers

2010-12-02 Thread Thomas Koch
Hi Andy - if you want to avoid hitting your Repository and indirectly your session and database, then it hardly seems fair to ask the Repository for the Order. ;-) Why not ask the Aggregate Root for the Order instead? Since you cannot be sure that an Id is generated for the Order, you probably

[nhusers] One-to-many to a subclass

2010-12-02 Thread Hendry Luk
Hello, Is there any way to make one-many bag association from an entity to a subclass (with join)? Just an isolated example: class name=Person !-- blah blah -- discriminator column=PersonType / /class subclass name=Employee discriminator-value=Employee !-- blah blah -- join table=Emplooyee key

[nhusers] براہ راست رائے ونڈ اجتم اع

2010-12-02 Thread asif jan
السلام علیکم ورحمۃ اللہ وبرکاتہ اہل حق کا عظیم الشان عالمی سالانہ تبلیغی اجتماع 2 دسمبر جمعرات بعد نماز عصر سے رائے ونڈ میں شروع ہورہا ہے۔ اجتماع میں ملک اوربیرون ملک سے لاکھوں کی تعداد میں علماء، عوام الناس، اور ہر شعبہ زندگی سےتعلق رکھنے والے لوگ شرکت کریں گے اور اپنے قلوب کو نور ایمانی سے منور

Re: [nhusers] Re: TPT Inheritance Delete all Proplem

2010-12-02 Thread Ahmed Emad
sorry for delay this is mapping : class name=Parent table=[dbo].[Parent] lazy=true id name=Id column=[Id] type=Int32 joined-subclass name=ChildB2 table=[dbo].[ChildB2] lazy=true key column name=[Id] / /key property name=Text column=[Text] type=String

[nhusers] Re: One-to-many to a subclass

2010-12-02 Thread Hendry Luk
And oh, just to point out that I can perfectly call the following query with no problem: session.QueryEmployee.Where(x= x.Company == company); It works fine. But I cant find a way to associate that with the Company entity. (I.e. for Company.Employees bag to invoke that same query). On Thu, Dec

[nhusers] get null reference many-to-one property using NHibernate testing with SQLite in memory

2010-12-02 Thread embarus
Hello, everyone I'm learning NHibernate and tried to test model with SQLite in memory. However, I found problem with many-to-one relation. For instance, Customer can have many orders and order has one customer reference. In my test I create customer and attach order, when loading customer back I

Re: [nhusers] One-to-many to a subclass

2010-12-02 Thread Fabio Maulo
are you using subclass+join for some special reasons ? On Thu, Dec 2, 2010 at 6:45 AM, Hendry Luk hendrym...@gmail.com wrote: Hello, Is there any way to make one-many bag association from an entity to a subclass (with join)? Just an isolated example: class name=Person !-- blah blah --

[nhusers] NHibernate 3.0.0 reference manual

2010-12-02 Thread Fabio Maulo
Hi all. The reference manual is on-line. http://nhforge.org/doc/nh/en/index.html -- Fabio Maulo -- You received this message because you are subscribed to the Google Groups nhusers group. To post to this group, send email to nhus...@googlegroups.com. To unsubscribe from this group, send email

[nhusers] Custom NHibernate entity persister for modifying generated SQL statements

2010-12-02 Thread Denis Parchenko
Hello community, I need to populate entity from DB view (non-insertable) and make all entity updates to updatable DB table. 1. Mapping entity to table and writing custom load SQL from view is not an option since in some cases NHibernate still tries to select from table name (when joining this

[nhusers] NH 3.0 b2 nchar(10) on MSSQL2008 primary key

2010-12-02 Thread Alexander Kot
Hello I am playing with NH 3.0 b2 I have entity with string PK Code Fluent mapping is used Id(x = x.Code).Column(CODE).Length(5).Not.Nullable().Unique().GeneratedBy.Assigned(); field code has nchar(5) type in DB Having such condition it will be next var lst = (from x in

[nhusers] nhibernate with multiple references foreign-key

2010-12-02 Thread a.fattah
hi there. i have 4 tables : **1 - tbl_cars** id (PK) car_name model year **2 - tbl_carOwner** id (PK) carId (FK - reference to tbl_cars) ownerId (FK - reference to tbl_ownerPersnoal or tbl_ownerCompany or tbl_ownerGov) ownerType (to make a differentiation about

[nhusers] NH 3.0.0 Not working with TransactionScope on Oracle

2010-12-02 Thread rodri_ogri
Hi all, I have tried something I thought was fixed on this version, it is the capability to work with TransactionScope and NH transactions with an Oracle 11G DB. This is the test I have done: [TestMethod] public void TransactionScope_Test() { bool

Re: [nhusers] NH 3.0.0 Not working with TransactionScope on Oracle

2010-12-02 Thread Fabio Maulo
A stack trace without the exception message is more than enough. Thanks. On Thu, Dec 2, 2010 at 12:54 PM, rodri_ogri rodri.o...@gmail.com wrote: Hi all, I have tried something I thought was fixed on this version, it is the capability to work with TransactionScope and NH transactions with an

Re: [nhusers] nhibernate with multiple references foreign-key

2010-12-02 Thread Fabio Maulo
any On Thu, Dec 2, 2010 at 12:34 PM, a.fattah abfi1...@gmail.com wrote: hi there. i have 4 tables : **1 - tbl_cars** id (PK) car_name model year **2 - tbl_carOwner** id (PK) carId (FK - reference to tbl_cars) ownerId (FK - reference to tbl_ownerPersnoal or

Re: [nhusers] NH 3.0 b2 nchar(10) on MSSQL2008 primary key

2010-12-02 Thread Fabio Maulo
a bug, but probably it is in your DB or in your mapping if you are generating the DB through NH. On Thu, Dec 2, 2010 at 1:12 PM, Alexander Kot alexander@gmail.comwrote: Hello I am playing with NH 3.0 b2 I have entity with string PK Code Fluent mapping is used Id(x =

Re: [nhusers] NHibernate 3.0.0 reference manual

2010-12-02 Thread Aaron Boxer
Cool. Thanks for making this available. On Thu, Dec 2, 2010 at 7:55 AM, Fabio Maulo fabioma...@gmail.com wrote: Hi all. The reference manual is on-line. http://nhforge.org/doc/nh/en/index.html -- Fabio Maulo -- You received this message because you are subscribed to the Google Groups

Re: [nhusers] NHibernate 3.0.0 reference manual

2010-12-02 Thread Fabio Maulo
The real scope is to have some review and new issue tickets in our JIRA where you find something to change/improve. On Thu, Dec 2, 2010 at 1:36 PM, Aaron Boxer boxe...@gmail.com wrote: Cool. Thanks for making this available. On Thu, Dec 2, 2010 at 7:55 AM, Fabio Maulo fabioma...@gmail.com

[nhusers] Re: NH 3.0 b2 nchar(10) on MSSQL2008 primary key

2010-12-02 Thread Alexander Kot
database schema is primary (I do not generate it) it is legacy DB CREATE TABLE BANKS ( BANK_CODEnchar(8) NOT NULL, CONSTRAINT PK_BANKS PRIMARY KEY NONCLUSTERED (BANK_CODE ASC) ) go I have created

Re: [nhusers] Re: NH 3.0 b2 nchar(10) on MSSQL2008 primary key

2010-12-02 Thread Fabio Maulo
nchar === the cause the value in your classes XX is different than the value stored XX On Thu, Dec 2, 2010 at 1:47 PM, Alexander Kot alexander@gmail.comwrote: database schema is primary (I do not generate it) it is legacy DB CREATE TABLE BANKS ( BANK_CODEnchar(8)

[nhusers] Re: NH 3.0 b2 nchar(10) on MSSQL2008 primary key

2010-12-02 Thread Alexander Kot
nchar === the cause that cannot be changed (legacy db) Is there way how to map such PK? On Dec 2, 7:00 pm, Fabio Maulo fabioma...@gmail.com wrote: nchar === the cause the value in your classes XX is different than the value stored XX   On Thu, Dec 2, 2010 at 1:47 PM, Alexander Kot

Re: [nhusers] Re: NH 3.0 b2 nchar(10) on MSSQL2008 primary key

2010-12-02 Thread Fabio Maulo
type=AnsiString On Thu, Dec 2, 2010 at 2:14 PM, Alexander Kot alexander@gmail.comwrote: nchar === the cause that cannot be changed (legacy db) Is there way how to map such PK? On Dec 2, 7:00 pm, Fabio Maulo fabioma...@gmail.com wrote: nchar === the cause the value in your classes

Re: [nhusers] Re: NH 3.0 b2 nchar(10) on MSSQL2008 primary key

2010-12-02 Thread Fabio Maulo
and/or http://code.google.com/p/unhaddins/source/browse/uNhAddIns/uNhAddIns/UserTypes/TrimString.cs On Thu, Dec 2, 2010 at 2:18 PM, Fabio Maulo fabioma...@gmail.com wrote: type=AnsiString On Thu, Dec 2, 2010 at 2:14 PM, Alexander Kot alexander@gmail.comwrote: nchar === the cause that

[nhusers] Re: NH 3.0 b2 nchar(10) on MSSQL2008 primary key

2010-12-02 Thread Alexander Kot
Thank you On Dec 2, 7:20 pm, Fabio Maulo fabioma...@gmail.com wrote: and/orhttp://code.google.com/p/unhaddins/source/browse/uNhAddIns/uNhAddIns/... On Thu, Dec 2, 2010 at 2:18 PM, Fabio Maulo fabioma...@gmail.com wrote: type=AnsiString On Thu, Dec 2, 2010 at 2:14 PM, Alexander Kot

[nhusers] Re: HQL parameters not converted correctly to SQL

2010-12-02 Thread Brian Berns
I put all the info necessary to recreate the issue in the bug report: http://216.121.112.228/browse/NH-2415 -- Brian On Nov 29, 2:26 pm, Fabio Maulo fabioma...@gmail.com wrote: because queries are generated depending on the mappings, would be very useful if you can attach mappings and

[nhusers] Re: NH 3.0.0 Not working with TransactionScope on Oracle

2010-12-02 Thread rodri_ogri
I forgot to paste the message :P, [NHibernate.TransactionException]{Begin failed with SQL exception} The connection is already part of a local or distributed transaction Is it a Oracle related issue? best regards On 2 dic, 12:31, Fabio Maulo fabioma...@gmail.com wrote: A stack trace without

Re: [nhusers] One-to-many to a subclass

2010-12-02 Thread Hendry Luk
Yes, in this case, because Employee has association to Company, and also other properties. Is there any other way to achieve that other than subclassjoin? On Thu, Dec 2, 2010 at 11:32 PM, Fabio Maulo fabioma...@gmail.com wrote: are you using subclass+join for some special reasons ? On Thu,

[nhusers] Summer of nHibernate tutorial

2010-12-02 Thread CarbonMan
Wondering if someone can help me. Running the unit test under Gallio 3.2 with NH3.0.0.GA under VS2005. I get the following: NHibernate.HibernateException: Unable to locate persister: DataTransfer.Customer TargetSite: Void OnLoad(NHibernate.Event.LoadEvent, NHibernate.Event.LoadType) HelpLink:

Re: [nhusers] Summer of nHibernate tutorial

2010-12-02 Thread Trần Phước Hùng
Customer.hbn.xml = Customer.hbm.xml ? Trần Phước Hùng (đã ký) 2010/12/3 CarbonMan p_hem...@hotmail.com Wondering if someone can help me. Running the unit test under Gallio 3.2 with NH3.0.0.GA under VS2005. I get the following: NHibernate.HibernateException: Unable to locate persister: