[nhusers] Alias without the entitiy

2010-09-03 Thread Jan Limpens
Hello, I need to query for all categories of (m:n) products of a certain (n:1) productgroup, the products can be restricted further by price range and their belonging to certain categories. I do not want to use criteria for that and I am using 2.1.2.4000. The query can form a huge cartesian, but

[nhusers] Re: Alias without the entitiy

2010-09-03 Thread Jan Limpens
Colin's article gave me the right pointers. from there on it was easy: http://colinramsay.co.uk/diary/2008/01/15/nhibernate-optimising-queries-with-projections/ On Fri, Sep 3, 2010 at 10:47 AM, Jan Limpens j...@limpens.com wrote: Hello, I need to query for all categories of (m:n) products

Re: [nhusers] linfu.dynamicproxy version

2010-08-18 Thread Jan Limpens
was modified in peer programming between Philips and NH's team member. If you are interested to use a specific version of LinFU DynamicProxy you can download the sources of its BytecodeProvider and compile it. On Tue, Aug 17, 2010 at 9:09 AM, Jan Limpens j...@limpens.com wrote: Won't you

Re: [nhusers] linfu.dynamicproxy version

2010-08-17 Thread Jan Limpens
Won't you otherwise (I kind of lack a topic to contact him about...)? On Tue, Aug 17, 2010 at 12:27 AM, Fabio Maulo fabioma...@gmail.com wrote: Try to talk to LinFu implementor and I'l say you the story of the LinFu.DynamicProxy used in NH. On Mon, Aug 16, 2010 at 11:52 PM, Jan Limpens j

Re: [nhusers] linfu.dynamicproxy version

2010-08-16 Thread Jan Limpens
Was released in 2008 :) On Mon, Aug 16, 2010 at 7:47 PM, Diego Mijelshon di...@mijelshon.com.arwrote: My _guess_ is that it hadn't been released when NH 2.1.2 was... Diego On Mon, Aug 16, 2010 at 19:18, Jan Limpens j...@limpens.com wrote: Is there a (good) reason, why

[nhusers] weird difficulties with criteria

2010-06-21 Thread Jan Limpens
Hello, I am constructing a query with criteria like so: var c = session.CreateCriteriaOrder(o); c.CreateCriteria(o.Lines, l, JoinType.InnerJoin) .CreateCriteria(l.Article, a, JoinType.InnerJoin); c.CreateCriteria(a.Inventory.Items, JoinType.InnerJoin); and the generated sql looks

[nhusers] Problem with distributed transaction (?)

2010-06-16 Thread Jan Limpens
Hello, First of all - I am cross posting this to both nhibernate as well the rhino list, as I cannot tell, where to ask this. Hope this is not too much of a problem. I am facing this problem: I use a message bus (rhino) to create entities, usually this works nicely, but here I have a problem.

Re: [nhusers] WCF DataService and components

2010-05-09 Thread Jan Limpens
I'm using NH and WCF and everything is ok. But, I dont use the Data Services. I just created services. Maybe your problem is not NH but WCF itself. 2010/5/9 Jan Limpens jan.limp...@gmail.com I am in the situaution, where I have an entity with a component-mapped list. component name

[nhusers] WCF DataService and components

2010-05-08 Thread Jan Limpens
I am in the situaution, where I have an entity with a component-mapped list. component name=UnitsOfMeasure insert=true update=true access=field.camelcase-underscore optimistic-lock=true class=UnitOfMeasure+UnitsOfMeasure parent name=InventoryItem / set access=field.camelcase-underscore

[nhusers] query on dates

2010-03-22 Thread Jan Limpens
hello I have an entity User class User{ string Name; DateTime Birthday; } how can I query for all Users that have birthday within the next 30 days? -- Jan -- You received this message because you are subscribed to the Google Groups nhusers group. To post to this group, send email to

Re: [nhusers] query on dates

2010-03-22 Thread Jan Limpens
] *On Behalf Of *Jan Limpens *Sent:* 22 March 2010 21:16 *To:* nhusers *Subject:* [nhusers] query on dates hello I have an entity User class User{ string Name; DateTime Birthday; } how can I query for all Users that have birthday within the next 30 days? -- Jan -- You

Re: [nhusers] query on dates

2010-03-22 Thread Jan Limpens
:* nhusers@googlegroups.com [mailto:nhus...@googlegroups.com] *On Behalf Of *Jan Limpens *Sent:* 22 March 2010 23:58 *To:* nhusers@googlegroups.com *Subject:* Re: [nhusers] query on dates well, with client side filtering i got it working, but it is far from ideal due to the high number

[nhusers] dirty checked user type

2010-02-03 Thread Jan Limpens
Hello, I implemented an IUserType like there: http://markmail.org/message/wae5qe5b2kti4qqd#query:+page:1+mid:3jkwktw6226357qs+state:results Now, everytime I load an entity with this usertype an update is issued (no actual changes to the entity happen), so I suppose the field is always considered

[nhusers] persisting an iset of strings

2010-01-27 Thread Jan Limpens
hello, is there some custom type somewhere in the nh namespaces that helps me to persist an iset of strings as a property of an entity? or will i have to implement this as a NHibernate.UserTypes.IUserCollectionType with some split char? -- Jan -- You received this message because you are

[nhusers] Re: persisting an iset of strings

2010-01-27 Thread Jan Limpens
actually, it could be an array or an ienumerable, too, because internally, I don´t care too much. On Wed, Jan 27, 2010 at 6:28 PM, Jan Limpens jan.limp...@gmail.com wrote: hello, is there some custom type somewhere in the nh namespaces that helps me to persist an iset of strings

Re: [nhusers] persisting an iset of strings

2010-01-27 Thread Jan Limpens
, 2010 at 6:50 PM, Fabio Maulo fabioma...@gmail.com wrote: set name=NickNames key column=personId/ element column=nick_name type=string not-null=true/ /set 2010/1/27 Jan Limpens jan.limp...@gmail.com hello, is there some custom type somewhere in the nh namespaces that helps me to persist

Re: [nhusers] persisting an iset of strings

2010-01-27 Thread Jan Limpens
jasondent...@gmail.comwrote: No. Here's why: http://en.wikipedia.org/wiki/First_normal_form Thanks, Jason On Wed, Jan 27, 2010 at 2:56 PM, Jan Limpens jan.limp...@gmail.comwrote: sorry, I have been too vague... what I want to persist is a list of strings in a column of the entity so

Re: [nhusers] persisting an iset of strings

2010-01-27 Thread Jan Limpens
No offense meant... so to clarify: It's just like there are lots of sources that say: don' use [singleton, goto, references to the container, etc...] while this is true in most cases, there are always cases where it is not On Wed, Jan 27, 2010 at 7:18 PM, Jan Limpens jan.limp...@gmail.com

Re: [nhusers] persisting an iset of strings

2010-01-27 Thread Jan Limpens
is a similar example http://fabiomaulo.blogspot.com/2009/06/localized-property-with-nhibernate.html 2010/1/27 Jan Limpens jan.limp...@gmail.com Dunno, in my case having to query another table would introduce heaps of changes, n+1 etc, while persisting that as an array would be super simple

Re: [nhusers] Re: how to debug a leaking connection pool (question)

2010-01-02 Thread Jan Limpens
{ conn.Close(); conn.Dispose(); } } Best regards, Harm. On 30 dec 2009, 23:43, Jan Limpens jan.limp...@gmail.com wrote: hello, recently under not yet clearly defined circumstances (it isn't load), we sometimes get into the situation

Re: [nhusers] how to debug a leaking connection pool (question)

2010-01-01 Thread Jan Limpens
connections in the past... Sent from my Verizon Wireless BlackBerry -- *From: * Jan Limpens jan.limp...@gmail.com *Date: *Wed, 30 Dec 2009 23:43:42 +0100 *To: *nhusersnhusers@googlegroups.com *Subject: *[nhusers] how to debug a leaking connection pool (question

[nhusers] how to debug a leaking connection pool (question)

2009-12-30 Thread Jan Limpens
hello, recently under not yet clearly defined circumstances (it isn't load), we sometimes get into the situation of a non-reacting sql server with the thrown exception: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because

[nhusers] some help writing this hql query...

2009-12-15 Thread Jan Limpens
hello guys, my hql is not so hot... could anyone help me with this query? query name=Orders.CountHowManyTimesTheseArticlesWereBought select sum(l.Quantity), a.Id from OrderLine l inner join l.Article as a inner join l.Order as o

Re: [nhusers] some help writing this hql query...

2009-12-15 Thread Jan Limpens
isn't valid, nothing else. It's the one durig session factory creation that isn't actually chatty. 99% sure it refers to both errors you've found. Diego On Tue, Dec 15, 2009 at 16:32, Jan Limpens jan.limp...@gmail.com wrote: hello guys, my hql is not so hot... could anyone help me

[nhusers] help with criteria: selecting based upon n properties of children

2009-12-07 Thread Jan Limpens
Hello [ I asked the same thing there: http://stackoverflow.com/questions/1861537/nhibernate-how-to-retrieve-an-entity-that-has-all-entities-with-a-certain-pred] I have an Article with a Set of Category. How can I query, using the criteria interface, for all Articles that contain all Categories

Re: [nhusers] help with criteria: selecting based upon n properties of children

2009-12-07 Thread Jan Limpens
an article having the same category twice, if that could happen. I don't have time to write it out fully right now. Your outer criteria now simply gets all articles whose id is in the detached criteria (Subqueries.PropertyIn()). /Oskar 2009/12/7 Jan Limpens jan.limp...@gmail.com: Hello

[nhusers] Re: problems with sessions on different threads

2009-10-26 Thread Jan Limpens
of the maintainers of the Nhibernate Integration Facility confirm this? Or at least tell me where to look... 2009/10/23 Jan Limpens jan.limp...@gmail.com We found a likely issue, but have not yet implemented it: From filters (which are probably assyncronous) we are accessing entities and daos from

[nhusers] Re: problems with sessions on different threads

2009-10-23 Thread Jan Limpens
to seeing this resolved or explained if this is not a real issue. Artur On 14 Paź, 22:12, Jan Limpens jan.limp...@gmail.com wrote: Hi, NhProf keeps telling me that on _some_ requests of my webb app my session/transactions seem to use multiple threads. And the server sometimes

[nhusers] Re: problems with sessions on different threads

2009-10-23 Thread Jan Limpens
We found a likely issue, but have not yet implemented it: From filters (which are probably assyncronous) we are accessing entities and daos from the controllers. I imagine this can lead just to our situations, but this is unconfirmed so far. 2009/10/23 Jan Limpens jan.limp...@gmail.com Well so

[nhusers] problems with sessions on different threads

2009-10-14 Thread Jan Limpens
Hi, NhProf keeps telling me that on _some_ requests of my webb app my session/transactions seem to use multiple threads. And the server sometimes enters into a race condition, where too many requests kill sql server (problems with closing transactions that are already disposed of, sounding just

[nhusers] Re: component with a non default .ctor

2009-09-27 Thread Jan Limpens
element allows a parent subelement that maps a property of the component class as a reference back to the containing entity. Från: nhusers@googlegroups.com [nhus...@googlegroups.com] f#246;r Jan Limpens [jan.limp...@gmail.com] Skickat: den 27

[nhusers] Re: component with a non default .ctor

2009-09-26 Thread Jan Limpens
??? 2009/9/26 Roger Kratz roger.kr...@teleopti.com: How could I pass a reference of it's owner to the component? parent Från: nhusers@googlegroups.com [nhus...@googlegroups.com] f#246;r Jan Limpens [jan.limp...@gmail.com] Skickat: den 26

[nhusers] component with a non default .ctor

2009-09-25 Thread Jan Limpens
I have class Order:IHaveDiscounts public Order(){ discounts = new DiscountContext(this); } DiscountContext Discounts get { return discounts ;} and class DiscountOrder(IHaveDiscounts discounted) ... Order is a mapped entity and I want to use DiscountOrder as a

[nhusers] Re: set id to interface mapping

2009-09-25 Thread Jan Limpens
damn it, one more interface gone, one more abstract base class there. 2009/9/24 Jan Limpens jan.limp...@gmail.com: I tried all types of accessors, always with the same result. The problem seems to be, that, while the implementation has a setter for Id, the interface has not. So I have a gut

[nhusers] Re: component with a non default .ctor

2009-09-25 Thread Jan Limpens
yes, but how does Discounts get the reference to IHaveDiscounts? 2009/9/25 Fabio Maulo fabioma...@gmail.com protected DiscountOrder(){} 2009/9/25 Jan Limpens jan.limp...@gmail.com I have class Order:IHaveDiscounts public Order(){ discounts = new DiscountContext

[nhusers] Re: component with a non default .ctor

2009-09-25 Thread Jan Limpens
, NH will inject it through property or field (depending on your mapping) 2009/9/25 Jan Limpens jan.limp...@gmail.com yes, but how does Discounts get the reference to IHaveDiscounts? 2009/9/25 Fabio Maulo fabioma...@gmail.com protected DiscountOrder(){} 2009/9/25 Jan Limpens jan.limp

[nhusers] set id to interface mapping

2009-09-24 Thread Jan Limpens
Hello, I've asked the same thing on stackoverflow, so if someone wants to get the points, he/she could go there as well :) I try to write a (fluent, but that's not the point) mapping against an interface public interface IOrderDiscount : IDomainObjectlong where public interface

[nhusers] Re: set id to interface mapping

2009-09-24 Thread Jan Limpens
Quintana conta...@darioquintana.com.ar Hey Jan, I don't know Fluent NHibernate, but you should go for access=backfield if you are using auto-properties. Cheers. On Thu, Sep 24, 2009 at 9:17 PM, Jan Limpens jan.limp...@gmail.comwrote: Hello, I've asked the same thing on stackoverflow

[nhusers] Re: awkward mapping problem

2009-07-30 Thread Jan Limpens
forgot to include the generated queries that totally ignore the fact, that there are two types of messages mapped. SELECT conversati0_.ConversationID AS Conversa1_16_1_, conversati0_.Name AS Name16_1_, customerme1_.ConversationID AS Conversa7_3_, customerme1_.MessageID

[nhusers] awkward mapping problem

2009-07-30 Thread Jan Limpens
Dear nhibs, I am getting this exception: Object with id: 253651 was not of the specified subclass: Businesslayer.AdministratorMessage (loading object was of wrong class [Businesslayer.CustomerMessage]) Conversation has two lists of Messages: AdministratorMessages and CustomerMessages class

[nhusers] Re: awkward mapping problem

2009-07-30 Thread Jan Limpens
http://twitter.com/tehlike On Thu, Jul 30, 2009 at 11:56 PM, Jan Limpens jan.limp...@gmail.comwrote: Dear nhibs, I am getting this exception: Object with id: 253651 was not of the specified subclass: Businesslayer.AdministratorMessage (loading object was of wrong class

[nhusers] Re: Setting Primary Key Name

2009-07-29 Thread Jan Limpens
2009/7/29 Fabio Maulo fabioma...@gmail.com Do you have a special reason to set the PK's index-name to a specific custom name when you are creating the DB using NH ? In database-objects I setup the fulltext catalogs. There I need to know how the PKs are called. But with Dario`s help I found a

[nhusers] Re: Setting Primary Key Name

2009-07-27 Thread Jan Limpens
2009/7/27 Nexus tommar...@gmail.com id name=Id column=Id unsaved-value=0 generator class=native/ /id Is is not the column=Id ? No, not the column name, the name of the Primary Key (PK_Something) On 26 jul, 21:52, James Gregory jagregory@gmail.com wrote: AFAIK you can't

[nhusers] Re: setting generator in code

2009-07-26 Thread Jan Limpens
/tuna_toksoz http://tunatoksoz.com http://twitter.com/tehlike On Fri, Jul 24, 2009 at 10:55 PM, Jan Limpens jan.limp...@gmail.comwrote: Hello, in a special situation prior to BuildSessionFactory() I need to change a Configuration so that a mapping that uses an Id generator 'hilo' uses 'assigned

[nhusers] Setting Primary Key Name

2009-07-26 Thread Jan Limpens
Hi there, for my database-objects to work (full text initialization on mssql), I would need to know the name of my primary keys. unfortunately, I have no idea, how to set this value. Anyone can help me? I could set this in code, too, does not have to be in the mapping. Thanks, -- Jan

[nhusers] setting generator in code

2009-07-24 Thread Jan Limpens
Hello, in a special situation prior to BuildSessionFactory() I need to change a Configuration so that a mapping that uses an Id generator 'hilo' uses 'assigned'. This must happen in code (I'd prefer not to have to touch the mappings). Can this be done? How? I stop at:

[nhusers] collection in a component without reference to the component's container

2009-07-22 Thread Jan Limpens
Hello, I have a Customer with a Cart with Lines (an ISetLine). I want to map the Cart as a component to Customer, but I would not want the lines to have a reference to the Customer, only to the Cart (and if possible not even that). How can I map this? Is this possible at all? -- Jan

[nhusers] Re: this in criteria

2009-07-10 Thread Jan Limpens
2009/7/10 Tuna Toksoz tehl...@gmail.com Maybe we can try converting Criteria to AST, hmm, or wait for linq anyway. In relation to linq I became quite sceptic, as it cannot make use of many of nh`s features like fetching or caching. To my knowledge, that is... But the hql is very readable,

[nhusers] this in criteria

2009-07-09 Thread Jan Limpens
hello, how can I put this in criteria? var query = Context.Themes .Where(t = t.Articles.Count 0 t.Visible) .OrderBy(t = t.Name); the Articles.Count 0 part is unclear to me... (shame) thanks! -- Jan --~--~-~--~~~---~--~~ You

[nhusers] nhibernate.engine.cascade

2009-07-07 Thread Jan Limpens
Hello! I recently found out that my logs are FULL of these: 2009-07-07 17:49:43,929 [4] INFO NHibernate.Engine.Cascade - cascade NHibernate.Engine.CascadingAction+SaveUpdateCascadingAction for collection: Businesslayer.Theme.Articles 2009-07-07 17:49:43,929 [4] INFO

[nhusers] Re: nhibernate.engine.cascade

2009-07-07 Thread Jan Limpens
...@gmail.com Mean only that you have the INFO log of NH activated.Log levels OFF = normal used in production ERROR or WARN = should be used DEBUG = in general is used by NH developers INFO = used by those want become crazy watching the NH's log 2009/7/7 Jan Limpens jan.limp...@gmail.com Hello! I

[nhusers] Re: nhibernate.engine.cascade

2009-07-07 Thread Jan Limpens
/ /root /log4net See, I even have got the nh loggers turned off (and I think this is why I get these Infos) --j 2009/7/7 Fabio Maulo fabioma...@gmail.com The log4net configuration is not enough ? 2009/7/7 Jan Limpens jan.limp...@gmail.com Ah, cool, thought that this meant lots

[nhusers] Re: nhibernate.engine.cascade

2009-07-07 Thread Jan Limpens
This works for the nh part, but totally silences all my castle logging facility logging 2009/7/7 Fabio Maulo fabioma...@gmail.com as most root priority value=WARN / appender-ref ref=console / /root logger name=NHibernate.SQL level value=DEBUG / /logger 2009/7/7 Jan Limpens

[nhusers] maybe slow performance

2009-07-01 Thread Jan Limpens
Hello, first of all - my doubt stems from the usage of nhprof and it's Duration feature. I am not sure how much I can trust it, due to it's beta stage. When profiling my application, depending on their complexity the queries shown in the profiler all have a duration from ~130ms to ~460ms, which

[nhusers] Re: maybe slow performance

2009-07-01 Thread Jan Limpens
source mind. http://devlicio.us/blogs/tuna_toksoz http://tunatoksoz.com http://twitter.com/tehlike On Wed, Jul 1, 2009 at 11:01 PM, Jan Limpens jan.limp...@gmail.comwrote: Hello, first of all - my doubt stems from the usage of nhprof and it's Duration feature. I am not sure how much I can

[nhusers] decimal conversion

2009-06-22 Thread Jan Limpens
Hello! A piece of hql that worked quite well in the past refuses to cooperate since I upgraded to .2001. var hql = select distinct cast(floor(a.Price/pg.PriceRangeAmount) * pg.PriceRangeAmount as Double) + from Article a + inner join a.ProductGroup

[nhusers] Re: decimal conversion

2009-06-22 Thread Jan Limpens
Arrrgh! Thanks Fabio!! 2009/6/22 Fabio Maulo fabioma...@gmail.com cast(floor(a.Price/pg.PriceRangeAmount) * pg.PriceRangeAmount as Double) Double != Decimal ;) 2009/6/22 Jan Limpens jan.limp...@gmail.com Hello! A piece of hql that worked quite well in the past refuses to cooperate

[nhusers] getting the newest Order with fetched OrderLines

2009-06-19 Thread Jan Limpens
Hello! I need to get a customers last Order with all it's OrderLines, each line with it's Article in one go. so the generated (ms) sql would be WHERE (this_.UserID = '18080') AND (this_.Timestamp = (SELECT MAX(Timestamp) AS y0_ FROM

[nhusers] Re: getting the newest Order with fetched OrderLines

2009-06-19 Thread Jan Limpens
as so often asking the question helps you pinpointing the mistake! crit.Add(Subqueries.PropertyEq(Timestamp, clientsMaxTimestamp)) its PropertyEq, here! 2009/6/19 Jan Limpens jan.limp...@gmail.com Hello! I need to get a customers last Order with all it's OrderLines, each line with it's

[nhusers] Re: ado timeouts

2009-05-05 Thread Jan Limpens
hey, jamie, long time no see! does not seem that way, i checked with a dba who confirmed that indexes were fine. 2009/4/28 Jamie Fraser jamie.fra...@gmail.com I guess you've already checked - but could this be an Indexing issue? On Thu, Apr 23, 2009 at 7:25 AM, Jan Limpens jan.limp

[nhusers] ado timeouts

2009-04-20 Thread Jan Limpens
hello, on the production server (where else), my otherwise snappy web app suddenly has timeouts and crawls like a snail. my config is: settings item key=show_sqltrue/item item key=max_fetch_depth1/item item

[nhusers] Re: mapping a value type hashtable in nh

2009-04-09 Thread Jan Limpens
2009/4/8 Fabio Maulo fabioma...@gmail.com 2009/4/8 Jan Limpens jan.limp...@gmail.com I suppose, I would have to use a custom user type to de/serialize, but any first hand experience would be a great help in avoiding pitfalls. There is an existing type=Serializable That means I would

[nhusers] mapping a value type hashtable in nh

2009-04-08 Thread Jan Limpens
Hello, I wonder if anybody know if something like this is mappable: public class Document { public Guid Id {get; set;} public IDictionarystring, string Properties {get; set;} } Properties would not be a relation to another table, but just a nvarchar column in the table. Could be in

[nhusers] hanging on duplicate mappings that do not exist

2009-03-05 Thread Jan Limpens
Hello, since recently, once in a while I get these Exceptions, which leave me a bit puzzled. A touch to web.config 'fixes' this for the hour, but it reappears infrequently. This leaves me a bit weary. I suspect my Session handling, but before I attack this, I would like to ask for your opinion on

[nhusers] Re: System.Data.Services not in gac

2009-01-13 Thread Jan Limpens
ah! sp1! On Tue, Jan 13, 2009 at 4:08 PM, Jan Limpens jan.limp...@gmail.com wrote: Hi, just updated nh at the test server and it seems it does not find System.Data.Services, now a requirement for nh, it seems. Before I try fix this: are there typical causes for a win2003 server with .net

[nhusers] scalar para

2009-01-13 Thread Jan Limpens
Since recently (trunk), now and then queries throw an error that earlier never did: public IListCategory GetCategoriesOfGroupWithKey(string key) { var hql = select distinct cats + from Article as a + left outer join

[nhusers] Re: DRYing up .hbm.xml files?

2009-01-04 Thread Jan Limpens
for instance with fluent nh, this is quite easily achieved On Sun, Jan 4, 2009 at 4:12 AM, Ken Egozi egoz...@gmail.com wrote: and as xml are just simple text files, you can also always write a simple XML poker that will inject the base mapping from a common location onto all your hbm files

[nhusers] possible mapping bug

2009-01-04 Thread Jan Limpens
Hello, this happens with today's trunk (but also with a somewhat earlier build) I have a very simple mapping: = ?xml version=1.0 encoding=utf-8? hibernate-mapping xmlns=urn:nhibernate-mapping-2.2 default-lazy=false assembly=Businesslayer

[nhusers] Re: possible mapping bug

2009-01-04 Thread Jan Limpens
=FK_Distributor_Product / one-to-many class=Product / /set /class /hibernate-mapping 2009/1/4 Jan Limpens jan.limp...@gmail.com Hello, this happens with today's trunk (but also with a somewhat earlier build) I have a very simple mapping

[nhusers] Re: possible mapping bug

2009-01-04 Thread Jan Limpens
) AssemblyQualifiedName 2009/1/4 Jan Limpens jan.limp...@gmail.com Hello, this happens with today's trunk (but also with a somewhat earlier build) I have a very simple mapping: = ?xml version=1.0 encoding=utf-8? hibernate-mapping xmlns=urn:nhibernate

[nhusers] Re: possible mapping bug

2009-01-04 Thread Jan Limpens
version. Don't gang up on me, please. On Sun, Jan 4, 2009 at 6:51 PM, Fabio Maulo fabioma...@gmail.com wrote: Try to recreate the same issue without use Fluent-NH and I'm pretty sure you can't.BTW the exception is about caching matters. 2009/1/4 Jan Limpens jan.limp...@gmail.com sorry

[nhusers] Re: possible mapping bug

2009-01-04 Thread Jan Limpens
and the bag is now a set On Sun, Jan 4, 2009 at 7:10 PM, Jan Limpens jan.limp...@gmail.com wrote: FYI: my old mapping does the same thing: ?xml version=1.0 encoding=utf-8 ? hibernate-mapping xmlns=urn:nhibernate-mapping-2.2 assembly=xxx.Businesslayer

[nhusers] Re: possible mapping bug

2009-01-04 Thread Jan Limpens
-mapping sorry the fluent verbosity :) On Sun, Jan 4, 2009 at 7:12 PM, Gustavo Ringel gustavo.rin...@gmail.comwrote: Did you make sure you are mapping Product as an Embedded Resource? On Sun, Jan 4, 2009 at 11:10 PM, Jan Limpens jan.limp...@gmail.comwrote: and the bag is now a set On Sun

[nhusers] Re: possible mapping bug

2009-01-04 Thread Jan Limpens
TestCase. I'll tell Craig about this. On Sun, Jan 4, 2009 at 7:25 PM, Jan Limpens jan.limp...@gmail.com wrote: yes, embedded, 100%. the product mapping is like that (reduced it a bit): ?xml version=1.0 encoding=utf-8? hibernate-mapping xmlns=urn:nhibernate-mapping-2.2 default-lazy=false assembly

[nhusers] Re: possible mapping bug

2009-01-04 Thread Jan Limpens
there are quite a few Craigs on the list and the nhforge does not provide his email. Maybe someone tells him about this or passes me his email... On Sun, Jan 4, 2009 at 7:57 PM, Jan Limpens jan.limp...@gmail.com wrote: the error was triggered here (baseclass for my tests, tuna gave me quite

[nhusers] mapping a deeper hierarchy

2009-01-03 Thread Jan Limpens
Hello, I have this hierarchy - Account - Customer - IndividualCustomer - CorporateCustomer - Administrator All of them have properties to map. I do not know how to map the hierarchy for a single table / discriminator mapping. Just make it flat: - class

[nhusers] Re: mapping a deeper hierarchy

2009-01-03 Thread Jan Limpens
? http://www.hibernate.org/hib_docs/nhibernate/html/inheritance.html just do subclass and add props as if it is a normal class? Tuna Toksöz http://tunatoksoz.com Typos included to enhance the readers attention! On Sat, Jan 3, 2009 at 10:12 PM, Jan Limpens jan.limp...@gmail.comwrote

[nhusers] nhibernate search - where is it?

2008-12-29 Thread Jan Limpens
I cannot find nhibernate search anywhere. Is this still alive? http://blogs.intesoft.net/post/2008/03/NHibernateSearch-using-Lucene-NET-Full-Text-Index-Part1.aspx mentions that it should be included in nh, but at least, if I compile the trunk, I get nothing. Any pointers? -- Jan

[nhusers] Re: nhibernate search - where is it?

2008-12-29 Thread Jan Limpens
cool! may I ask, if there is still the need for those attribs, or can this be handled without a nh reference in my domain layer in the meanwhile? On Mon, Dec 29, 2008 at 3:26 PM, Ayende Rahien aye...@ayende.com wrote: It is in contrib. On Mon, Dec 29, 2008 at 7:22 PM, Jan Limpens jan.limp

[nhusers] nh trunk contrib

2008-12-29 Thread Jan Limpens
someone maintains a nhcontrib that builds with nh trunk? -- Jan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups nhusers group. To post to this group, send email to nhusers@googlegroups.com To unsubscribe from this

[nhusers] Re: nh trunk contrib

2008-12-29 Thread Jan Limpens
nhibernate search On Mon, Dec 29, 2008 at 7:52 PM, Fabio Maulo fabioma...@gmail.com wrote: about which prj ? 2008/12/29 Jan Limpens jan.limp...@gmail.com someone maintains a nhcontrib that builds with nh trunk? -- Jan -- Fabio Maulo -- Jan

[nhusers] Re: nh trunk contrib

2008-12-29 Thread Jan Limpens
NHibernate.Search.csproj -- FAILED. On Mon, Dec 29, 2008 at 8:00 PM, Fabio Maulo fabioma...@gmail.com wrote: 2008/12/29 Jan Limpens jan.limp...@gmail.com nhibernate search So far I know NHSR trunk are working only with NH-trunk. NH-Search and NH-LINQ, on contrib, are the two only projects with a reference

[nhusers] Re: nh2linq and select in

2008-12-22 Thread Jan Limpens
nobody can give me a hint on this one? On Tue, Dec 16, 2008 at 7:37 PM, Jan Limpens jan.limp...@gmail.com wrote: at least query.Where(article = categoryKeys.All(c= article.Categories.Select(cc = cc.Key).Contains(c))); is ignored completely (no wonder) On Tue, Dec 16, 2008 at 7:24 PM, Jan

[nhusers] Re: nh2linq and select in

2008-12-22 Thread Jan Limpens
)); } Hurray! On Mon, Dec 22, 2008 at 10:37 AM, Jan Limpens jan.limp...@gmail.com wrote: nobody can give me a hint on this one? On Tue, Dec 16, 2008 at 7:37 PM, Jan Limpens jan.limp...@gmail.comwrote: at least query.Where(article = categoryKeys.All(c= article.Categories.Select(cc

[nhusers] Re: nh2linq and select in

2008-12-16 Thread Jan Limpens
at least query.Where(article = categoryKeys.All(c= article.Categories.Select(cc = cc.Key).Contains(c))); is ignored completely (no wonder) On Tue, Dec 16, 2008 at 7:24 PM, Jan Limpens jan.limp...@gmail.com wrote: Hello Linq wizards, Nh2linq translates query.Where(article

[nhusers] log warning I don't know what to do with...

2008-12-08 Thread Jan Limpens
I get these, WARN NHibernate.Engine.Loading.LoadContexts [(null)] - fail-safe cleanup (collections) : NHibernate.Engine.Loading.CollectionLoadContextrs=NHibernate.Driver.NHybridDataReader probably related to that: from Page page left join fetch page.Parent p left join fetch

[nhusers] Re: Persisting a behaviour only class

2008-11-24 Thread Jan Limpens
a BaseCreditCard (without CreditCardCompany, just the props) and a Type CreditCardCompantType So would use these to get to a readonly GenericCreditCardCreditCardCompanyType or is there a better way? On Sun, Nov 23, 2008 at 2:44 PM, Fabio Maulo [EMAIL PROTECTED] wrote: 2008/11/23 Jan

[nhusers] Re: difficult (?) mapping with components and interface

2008-11-24 Thread Jan Limpens
/html/mapping.html#mapping-types-anymapping See example with AR http://www.castleproject.org/activerecord/documentation/trunk/usersguide/relations/hasmanytoany.html On Thu, Nov 20, 2008 at 12:14 PM, Jan Limpens [EMAIL PROTECTED] wrote: I have a class Purchase (used by nh) that has an IPayment

[nhusers] Re: Persisting a behaviour only class

2008-11-21 Thread Jan Limpens
What you want persist into a DataBase if you don't have data ? I'd persist behavior and try to use strategy instead of inheritance, to modify behavior. I want to persist the name of the class that defines this behavior/strategy. Where else could I do that, if not in the db? -- Jan

[nhusers] Re: Persisting a behaviour only class

2008-11-21 Thread Jan Limpens
, Jan Limpens [EMAIL PROTECTED] wrote: Unable to cast object of type 'System.Runtime.Remoting.ObjectHandle' to type 'xxx.CreditCardCompany'. seems I've got more work ahead :) On Thu, Nov 20, 2008 at 8:43 PM, Tuna Toksöz [EMAIL PROTECTED] wrote: public Type ReturnedType

[nhusers] Re: difficult (?) mapping with components and interface

2008-11-20 Thread Jan Limpens
- From: nhusers@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jan Limpens Sent: den 20 november 2008 15:15 To: nhusers@googlegroups.com Subject: [nhusers] difficult (?) mapping with components and interface I have a class Purchase (used by nh) that has an IPayment Currently I

[nhusers] Re: difficult (?) mapping with components and interface

2008-11-20 Thread Jan Limpens
ask ayende about it ;) On Thu, Nov 20, 2008 at 1:30 PM, Gustavo Ringel [EMAIL PROTECTED] wrote: Be 24x7x365 hours in front of a computer programming and it will be in every other way :). On Thu, Nov 20, 2008 at 5:26 PM, Jan Limpens [EMAIL PROTECTED] wrote: never done this before, I guess

[nhusers] Re: difficult (?) mapping with components and interface

2008-11-20 Thread Jan Limpens
don't be mad at me (whistling smiley inserted here), ayende On Thu, Nov 20, 2008 at 1:34 PM, Jan Limpens [EMAIL PROTECTED] wrote: ask ayende about it ;) On Thu, Nov 20, 2008 at 1:30 PM, Gustavo Ringel [EMAIL PROTECTED] wrote: Be 24x7x365 hours in front of a computer programming

[nhusers] Re: Persisting a behaviour only class

2008-11-20 Thread Jan Limpens
mapping with discriminator should work. On Fri, Nov 21, 2008 at 12:32 AM, Jan Limpens [EMAIL PROTECTED] wrote: A Creditcard has a CreditcardCompany here is one public abstract class CreditCardCompany { private readonly string name; protected CreditCardCompany(string name

[nhusers] Re: Persisting a behaviour only class

2008-11-20 Thread Jan Limpens
21, 2008 at 12:02 AM, Jan Limpens [EMAIL PROTECTED] wrote: currently), and I want to use them only as components of the Purchase.CreditCard class. -- Tuna Toksöz http://www.tunatoksoz.com Typos included to enhance the readers attention! -- Jan ___ [EMAIL PROTECTED

[nhusers] Re: what is better IList Or ISet

2008-11-03 Thread Jan Limpens
I don't quite get what this has to do with ISet vs. IList... By the way public IListItem ListItem { get { listItem.AsReadOnly(); } set; } Exposes an Add() method on ListItem, that will throw an Exception, because the list is immutable. As I remember it also confuses NH. Jan

[nhusers] Re: what is better IList Or ISet

2008-11-01 Thread Jan Limpens
Not necessary so. Who do you think this is the case? On Wed, Oct 29, 2008 at 10:38 AM, Symon Rottem [EMAIL PROTECTED] wrote: Actually for a set you will need to use ImmutableSetT. Symon. On Wed, Oct 29, 2008 at 12:30 PM, Jan Limpens [EMAIL PROTECTED] wrote: I expose ISets

[nhusers] Re: Found shared references to a collection

2008-10-23 Thread Jan Limpens
subclass Foo and also compose a Foo in the parent field? -Original Message- From: nhusers@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jan Limpens Sent: Thursday, October 23, 2008 11:39 AM To: nhusers@googlegroups.com Subject: [nhusers] Found shared references

[nhusers] Re: Found shared references to a collection

2008-10-23 Thread Jan Limpens
] On Behalf Of Jan Limpens Sent: Thursday, October 23, 2008 11:59 AM To: nhusers@googlegroups.com Subject: [nhusers] Re: Found shared references to a collection Bar is ... I have Product:Article and SubArticle:Article (among others). SubArticles are Products that override (datawise) some

[nhusers] not casacading

2008-10-22 Thread Jan Limpens
Hi guys, I have a subclass name=Product set name=SubArticles table=Articles access=field.camelcase cascade=all-delete-orphan

  1   2   >