[fluent-nhib] Re: How do I configure a session factory for oracle?

2009-02-19 Thread Filip Kinsky
you can use configuration class for Oracle from this blog post: http://tiredblogger.wordpress.com/2008/12/04/persistanceconfiguration-for-oraclefluent-nhibernate/ On 18 Ún, 22:32, George Mauer gma...@gmail.com wrote: Almost certainly a stupid question but I can't find the answer anywhere. In

[fluent-nhib] how to create convention for sequence name for identity mapping (Oracle)?

2009-02-19 Thread Filip Kinsky
Maybe I just can't see something obvious, but how can I create convention for mapping ID fields to Oracle's sequence with name like seq_ + entityTypeName? I'm not able to figure out how to access the ID property type and according to source code (IdentityPart.cs) the _property member field is not

[fluent-nhib] Re: Obscure Mapping Error

2009-02-19 Thread Jimit
Additionally I'm now getting the following error: PersistenceTests.Can_Map_Orders_To_Database : Failed System.Xml.Schema.XmlSchemaValidationException: The element 'class' in namespace 'urn:nhibernate-mapping-2.2' has invalid child element 'set' in namespace 'urn:nhibernate-mapping-2.2'. List

[fluent-nhib] Re: How do I configure a session factory for oracle?

2009-02-19 Thread James Gregory
Good link Filip, I didn't know that existed. It's a shame people don't submit things like that as patches. On Thu, Feb 19, 2009 at 7:57 AM, Filip Kinsky fi...@filovo.net wrote: you can use configuration class for Oracle from this blog post:

[fluent-nhib] Re: how to create convention for sequence name for identity mapping (Oracle)?

2009-02-19 Thread James Gregory
Unfortunately there isn't support for this currently. There was an issuehttp://code.google.com/p/fluent-nhibernate/issues/detail?id=81created for this a while back, but nobody's claimed it yet. On Thu, Feb 19, 2009 at 7:55 AM, Filip Kinsky fi...@filovo.net wrote: Maybe I just can't see

[fluent-nhib] Re: Add multiple mappings

2009-02-19 Thread James Gregory
Actually, thinking about 1. some more, I think it depends on your design as to whether any changes would be needed. Could you give me an example of how you hoped to use it? Mappings takes a lambda that gets applied to a MappingConfiguration instance, you can use multiple lambdas and they'll all

[fluent-nhib] Re: Constraints not making it to the database schema

2009-02-19 Thread James Gregory
There was a bug in the Not.Nullable code that I've just fixed, could you confirm (or deny) whether this has had any affect on your problem? On Thu, Feb 19, 2009 at 12:09 AM, Steven Lyons stevenly...@gmail.comwrote: Hi All, I'm having a weird problem that hopefully someone might have some

[fluent-nhib] Re: How do I configure a session factory for oracle?

2009-02-19 Thread James Gregory
That's interesting. The code does look out of date actually. Shouldn't be too difficult to derive from the PersistenceConfiguration class and create your own OracleConfiguration. I'd do it myself but I don't have oracle or really know the different options available in it's connection string. On

[fluent-nhib] Re: Mapping enums to INT values - not strings

2009-02-19 Thread James Gregory
When was the last time you did an update? There was a bug relating to this that I fixed about an hour ago. On Thu, Feb 19, 2009 at 2:54 PM, Tom Warnat war...@mauve.de wrote: This does not seem to work with MySQL. The SQL Query is something like this: Create table foo ( FooID

[fluent-nhib] Re: how to create convention for sequence name for identity mapping (Oracle)?

2009-02-19 Thread Filip Kinsky
And is this really just about publishing the IdentityPart._property field? I could send a patch if it's just so trivial... On 19 Ún, 13:14, James Gregory jagregory@gmail.com wrote: Unfortunately there isn't support for this currently. There was an

[fluent-nhib] Re: Mapping enums to INT values - not strings

2009-02-19 Thread Tom Warnat
Last time five hour ago or so. Works with the latest code. Thanks! From: fluent-nhibernate@googlegroups.com [mailto:fluent-nhibern...@googlegroups.com] On Behalf Of James Gregory Sent: Donnerstag, 19. Februar 2009 15:59 To: fluent-nhibernate@googlegroups.com Subject: [fluent-nhib] Re:

[fluent-nhib] Newbie message

2009-02-19 Thread Gabriele Tassi
Hello Everybody, I've just discovered this new tool and I find it great! I would like to use it to refactor an existing project of which I'm not completely happy. This project has been made with AndroMDA, a tool that left me quite disappointed. /* By the way, my two cents about MDA in general:

[fluent-nhib] Re: Duplicate subclass mapping created when using IAutoMappingOverrideT

2009-02-19 Thread Jimit
I've fixed this problem by modifying AutoMapper.MergeMapT to check for the existence of any SubClassPart,, for that derived type in the AutoMapT.Parts of the type being mapped. I'll submit a patch for that in a minute. More urgently though, fixing that uncovered another problem: Whereas I'd been

[fluent-nhib] Re: Problem with Inheritance

2009-02-19 Thread Jimit
@Neo: This seems related to the a bug I've discovered where the AutoMapper generates joinedsubclass mappings even when you've explicitly defined subclass mappings with a discriminator in your mapping override. You could refer to this thread:

[fluent-nhib] Re: Obscure Mapping Error

2009-02-19 Thread Jimit
I've found why the error was occurring... doesn't seem to support nested classes even though NH does... This was mainly due the 'name' attribute of the 'class' element in the hbm mapping file being set to the class name. which isn't the complete class name for nested types. I fixed it by just

[fluent-nhib] Re: Newbie message

2009-02-19 Thread Gabriele Tassi
Hi James, thanks for the prompt and detailed answer. I will do as you told me about that small bug (if indeed it's one...). For what may has seemed a complaint about support, I just meant to say that it would be great if this tool became part of NHibernate itself, maybe in the Contrib project.

[fluent-nhib] Re: Newbie message

2009-02-19 Thread James Gregory
I just meant to say that it would be great if this tool became part of NHibernate itself, maybe in the Contrib project. Could you explain why you think this would be a good thing? I'm interested because I actually made the opposite decision recently, and would like to hear opinions for the

[fluent-nhib] Re: Fwd: FNH patch

2009-02-19 Thread James Gregory
Thanks Jimit, I will review and apply these as soon as I get the opportunity. Time is short right now. On Thu, Feb 19, 2009 at 6:03 PM, Jimit Ndiaye jimitndi...@gmail.com wrote: Sent from my iPhone Begin forwarded message: The attached patch contains the following: 1) Added support for

[fluent-nhib] Re: How do I configure a session factory for oracle?

2009-02-19 Thread George Mauer
I fixed it up to this: http://pastebin.com/f3704d5a9 but then is started throwing a NHibernate.HibernateException : The IDbCommand and IDbConnection implementation in the assembly Oracle.DataAccess could not be found error. The solution is here:

[fluent-nhib] Re: How do I configure a session factory for oracle?

2009-02-19 Thread George Mauer
I fixed it up to this: http://pastebin.com/f3704d5a9 but then is started throwing a NHibernate.HibernateException : The IDbCommand and IDbConnection implementation in the assembly Oracle.DataAccess could not be found error. The solution is here:

[fluent-nhib] Now Where should I start

2009-02-19 Thread Andrew Stewart
Hi I'm getting towards the end of one of my personal projects, so I'm going to be in a position to start contributing again. Where am I best concentrating my effort at the moment, on the PB rewrite branch of supporting the main trunk? Cheers Andy -- = I-nnovate Software -

[fluent-nhib] Re: Constraints not making it to the database schema

2009-02-19 Thread Steven Lyons
It looks like same problem occurs with the length attribute. As with the previous fix, when the column element is present in a property, as it is the FNH hbm exports, the length should be on the column instead of the property. On Feb 19, 11:23 am, Steven Lyons stevenly...@gmail.com wrote: Hi

[fluent-nhib] Re: Constraints not making it to the database schema

2009-02-19 Thread James Gregory
Thanks for the heads up, I'll fix this asap. On Thu, Feb 19, 2009 at 10:27 PM, Steven Lyons stevenly...@gmail.comwrote: It looks like same problem occurs with the length attribute. As with the previous fix, when the column element is present in a property, as it is the FNH hbm exports, the

[fluent-nhib] Re: Constraints not making it to the database schema

2009-02-19 Thread Steven Lyons
James, Attached is a patch that gets most of the way there, I think. I added a test for the unique attribute and made changes similar to what you did for the previous fix. There is one test that isn't passing. The hbm is getting two lengths for strings now - the correct one on the column

[fluent-nhib] Re: Constraints not making it to the database schema

2009-02-19 Thread Steven Lyons
Take II: This patch passes the tests. Index: src/FluentNHibernate.Testing/DomainModel/Mapping/ ClassMapXmlCreationTester.cs === --- src/FluentNHibernate.Testing/DomainModel/Mapping/ ClassMapXmlCreationTester.cs(revision 330) +++

[fluent-nhib] Re: Now Where should I start

2009-02-19 Thread Paul Batum
Gday Andy, Progress on the semantic model has slowed these last few weeks as I've returned to the land of the employed, but basically, I can't see any reason why you couldn't start work on an automapper that works against the semantic model. The model is missing alot of features so there is no

[fluent-nhib] Foreign as lambda

2009-02-19 Thread Chris Constantin
Hi all, I just did a new build, and it looks like Foreign(x=x.User) is no longer supported. To me it seems like both Foreign(lamda) and Foreign (string) should be supported. Any plans on adding it back? Thanks, Chris --~--~-~--~~~---~--~~ You received this