[fluent-nhib] PersistenceSpecification and the CheckList issue

2011-06-09 Thread Luis Abreu
Hello guys. I've asked about this in the past, but I didn't get a definitive answer. Here's my scenario: I've got a one-to-many mappings where each side is represented by an entity (not a component). Can anyone tell me why CheckList insists on inserting the items on the many side before inserting

[fluent-nhib] why are persistencespecification methods implemented as extension methods?

2010-07-14 Thread Luis Abreu
Hello guys. while looking at the code, I've noticed that the CheckZZZ methods are implemented as extension methods. I must admit that I'm curious: why did you guys followed this approach? thanks. -- Regards, Luis Abreu -- You received this message because you are subscribed to

Re: [fluent-nhib] PersistenceSpecification and CheckList

2010-07-07 Thread Luis Abreu
0 at 12:51 PM, Paul Batum wrote: > Not sure if I'm on the right track exactly, but there are some overloads for > CheckList that might help you. > See this thread: > http://groups.google.com/group/fluent-nhibernate/browse_thread/thread/cebc70ff873e4fd2/ce6cc622bc02d9c > > O

[fluent-nhib] still on the CheckList method and on how things are tested in PersistenceSpecification

2010-07-07 Thread Luis Abreu
, then that means I can't pass null to the IdEntidade in Filiais. But since Filiais is inserted before Entidades, that means getting a SQL exception when the test is run. If I remove the foreign key (which I did to get the complete SQL list), the test passes. But I really don't want to remo

Re: [fluent-nhib] fluent nh wiki

2010-07-06 Thread Luis Abreu
o. Discriminators default to using the class > name as the discriminator value. > > On Tue, Jul 6, 2010 at 11:51 AM, Luis Abreu wrote: >> >> Hello guys. >> >> I'm reading the wiki: http://wiki.fluentnhibernate.org/Fluent_mapping >> >> and I&

[fluent-nhib] fluent nh wiki

2010-07-06 Thread Luis Abreu
Hello guys. I'm reading the wiki: http://wiki.fluentnhibernate.org/Fluent_mapping and I've got a question on the table-per-hierachy mapping shown at the end of the page.Don't you need to specify the discriminator value for each derived class? I'm not seein that on the example that is shown. than

[fluent-nhib] PersistenceSpecification and CheckList

2010-07-05 Thread Luis Abreu
Hello guys, I've got the following mappings: public class OcorrenciaMapping: ClassMap { HasMany(ocorrencia => ocorrencia.Intervencoes) .Access.AsCamelCaseField(Prefix.Underscore) .AsBag() .Cascade .All()

[fluent-nhib] fluent mappings and filtering types.

2009-03-18 Thread Luis Abreu
Hello guys. I'm converting some old code I had which used mapping visitors to load and populate the Configurationn object. I was under the impression that this code: var configuration = Fluently.Configure( ) .Database( GetDatabaseInfo() ) .Mappi

[fluent-nhib] Re: Need some explanations about LazyLoad method

2009-01-30 Thread Luis Abreu
it's now: LazyLoad() and Not.LazyLoad(), these are available wherever LazyLoad was before, and also on the subclass. On Tue, Jan 27, 2009 at 12:43 PM, Luis Abreu wrote: Yeah, and if i recall correctly, the default is lazy loading, which is not working for meJ Thanks agai

[fluent-nhib] Re: Need some explanations about LazyLoad method

2009-01-27 Thread Luis Abreu
shall add that method to my list of changes. On Tue, Jan 27, 2009 at 12:33 PM, Luis Abreu wrote: Oh, just remembered…and what about the lazy attribute on the other properties (references)? For instance, on collections…I see there is a LazyLoad method but there isn't a NoLazyLoad met

[fluent-nhib] Re: Need some explanations about LazyLoad method

2009-01-27 Thread Luis Abreu
Subject: [fluent-nhib] Re: Need some explanations about LazyLoad method Excellent! Glad we got there in the end. On Tue, Jan 27, 2009 at 12:23 PM, Luis Abreu wrote: James, thanks for your time! As always, the mistake was mine: the error were coming from the snapshot classes which also had

[fluent-nhib] Re: Need some explanations about LazyLoad method

2009-01-27 Thread Luis Abreu
, and all the subclasses also set to false. That works for me. On Tue, Jan 27, 2009 at 12:08 PM, Luis Abreu wrote: I'm seeing the lazy="false" on the XML but I'm still getting the same error if I don't set the default-lazy to false. Btw, here's t

[fluent-nhib] Re: Need some explanations about LazyLoad method

2009-01-27 Thread Luis Abreu
ly, you can use SetAttribute instead. subclass.SetAttribute("lazy", "false"); I'll look into getting this implemented properly. Let me know if the set attribute hack works. On Tue, Jan 27, 2009 at 11:36 AM, Luis Abreu wrote: Hello again. You're not going t

[fluent-nhib] Re: Need some explanations about LazyLoad method

2009-01-27 Thread Luis Abreu
Hello again. You're not going to like this answer... it works for me! Yep, I don't like that answer :) Ok, back to my code. First, I'm not using sessionsource because the assembly is not signed and since it has dependencies on non-signed assemblies I cannot sign it here. So, I'm just getting th

[fluent-nhib] Re: Need some explanations about LazyLoad method

2009-01-27 Thread Luis Abreu
out Luis? One-to-many? Many-to-many? Many-to-one? On Mon, Jan 26, 2009 at 6:35 PM, Luis Abreu wrote: Guys, pause please! Ok, I can see that adding the notlazyloaded method call will put lazy = false on my class on the generated xml. Now the problem is that when this xml is loaded I get exceptio

[fluent-nhib] Re: Need some explanations about LazyLoad method

2009-01-26 Thread Luis Abreu
Guys, pause please! Ok, I can see that adding the notlazyloaded method call will put lazy = false on my class on the generated xml. Now the problem is that when this xml is loaded I get exceptions saying that my properties aren't virtual (and no, they're not and no I don't want lazy lozading on m

[fluent-nhib] Re: Need some explanations about LazyLoad method

2009-01-26 Thread Luis Abreu
Btw, this is a problem I've faced in my mappings. Shouldn't the lazy attribute that you apply to a class element override that mapping? I'm asking this because I've had to change the default convention on my mappings so that I could discard the lazy loading options since it always insisted in using

[fluent-nhib] Re: still about signing the assembly

2009-01-26 Thread Luis Abreu
rnate.Framework project references assemblies that aren't signed themselves, which prevents us from signing it; I don't really want to sign only half of FNH! I'll see if I can remove the offending assemblies, but I don't know yet. On Fri, Jan 23, 2009 at 12:13 PM, Luis Abreu

[fluent-nhib] still about signing the assembly

2009-01-23 Thread Luis Abreu
Hello guys, I've just run na svn update on the fluent solution and it looks like it still doesn't sign the assembly and adds the APTA attribute by default. I was under the impression that this had been discussed here and fixed. Can anyone confirm it? And if that is correct, when can we get that u

[fluent-nhib] Re: Signing our assemblies

2009-01-14 Thread Luis Abreu
+1 for signing and adding the allow partial calllers attribute so that non-signed dlls can still call use the assembly. From: fluent-nhibernate@googlegroups.com [mailto:fluent-nhibern...@googlegroups.com] On Behalf Of Andrew Stewart Sent: terça-feira, 13 de Janeiro de 2009 20:09 To: fluen

[fluent-nhib] Re: Difficulty integrating into AutoPersistenceModel into S#arp Architecture

2009-01-13 Thread Luis Abreu
Hello guys. Just one thing regarding the version support and the baseclass inheritance problem: does it work when you need to customize the mappings? Remember my version + timestamp (sql server) problem? I had to give up on automapping because when I added the custom version entry for each of

[fluent-nhib] Re: question on auto mapping

2009-01-09 Thread Luis Abreu
n for your help! --- Luis Abreu From: fluent-nhibernate@googlegroups.com [mailto:fluent-nhibern...@googlegroups.com] On Behalf Of James Gregory Sent: sexta-feira, 9 de Janeiro de 2009 12:14 To: fluent-nhibernate@googlegroups.com Subject: [fluent-nhib] Re: question on auto mapping Andrew

[fluent-nhib] Re: question on auto mapping

2009-01-09 Thread Luis Abreu
Ok, that makes sense. Thanks,. --- Luis Abreu From: fluent-nhibernate@googlegroups.com [mailto:fluent-nhibern...@googlegroups.com] On Behalf Of James Gregory Sent: sexta-feira, 9 de Janeiro de 2009 09:39 To: fluent-nhibernate@googlegroups.com Subject: [fluent-nhib] Re: question on

[fluent-nhib] Re: question on auto mapping

2009-01-08 Thread Luis Abreu
Btw James, one more question: When using the auto persistence, shouldn't I be able to save the xml to disk by using the previous code? It's that I get nothing and stopping the debugger there I see 0 mappings on the persistencemodel Thanks. --- Luis Abreu Fr

[fluent-nhib] Re: question on auto mapping

2009-01-08 Thread Luis Abreu
Hello James. Thanks for the help! Firstly, why is it that you're using a IUserType for your version? What is the type that your version property has in your entity? I ask that because Fluent NHibernate has a few options for mapping Versions and Timestamps. On the class, I have a Byte[] propert

[fluent-nhib] Re: Automapping a complex inheritance

2009-01-08 Thread Luis Abreu
Ok. Thanks --- Luis Abreu From: fluent-nhibernate@googlegroups.com [mailto:fluent-nhibern...@googlegroups.com] On Behalf Of Andrew Stewart Sent: quinta-feira, 8 de Janeiro de 2009 16:04 To: fluent-nhibernate@googlegroups.com Subject: [fluent-nhib] Re: Automapping a complex inheritance

[fluent-nhib] Re: question on auto mapping

2009-01-08 Thread Luis Abreu
Btw, one more stupid question. If I have this: var modeloPersistencia = AutoPersistenceModel.MapEntitiesFromAssemblyOf() .Where( type => type == typeof (Disciplina) ) //comecar com disciplina .WithConvention(convention =>

[fluent-nhib] Re: question on auto mapping

2009-01-08 Thread Luis Abreu
Ahh, that makes sense now my fault on the understanding. In that case your only option is to manually map the Version for each class.  I see...can you give more info on how to do that? I mean, should I add classmaap derived classes with only the version definition and then merge them with my au

[fluent-nhib] Re: question on auto mapping

2009-01-08 Thread Luis Abreu
Hello again. One quick thing, it seems at the moment, the property that timestamps must be called version or timestamp, otherwise you'll have to manually map it. I tried using Timestamp but then NH tries to use datetime. That's why I'm using a custom user type and it seems like it's working (at

[fluent-nhib] Re: question on auto mapping

2009-01-08 Thread Luis Abreu
. --- Luis Abreu From: fluent-nhibernate@googlegroups.com [mailto:fluent-nhibern...@googlegroups.com] On Behalf Of Andrew Stewart Sent: quinta-feira, 8 de Janeiro de 2009 14:00 To: fluent-nhibernate@googlegroups.com Subject: [fluent-nhib] Re: question on auto mapping Hi Luis you need to inform

[fluent-nhib] question on auto mapping

2009-01-08 Thread Luis Abreu
into EntidadeBases table when I use the Persistence Specification to test the mappings. Can anyone tell me why this happens and how to solve this? Can't I use inheritance in my classes and auto mapping? Thanks. --- Luis Abreu --~--~-~--~~~---~--~~ You