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
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
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
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
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
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
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.
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
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
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
] *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
:* 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
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
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
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
, 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
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
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
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
{
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
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
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
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
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
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
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
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
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
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
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
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
???
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
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
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
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
, 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
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
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
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
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
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
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
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
/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
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
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:
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
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,
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
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
...@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
/
/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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
=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
) 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
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
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
-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
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
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
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
?
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
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
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
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
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
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
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
));
}
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
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
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
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
/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
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
, 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
-
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
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
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
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
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
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
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
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
] 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
Hi guys,
I have a
subclass name=Product
set name=SubArticles
table=Articles
access=field.camelcase
cascade=all-delete-orphan
1 - 100 of 106 matches
Mail list logo