Confirming the issue has been resolved with r531.
ty.
On May 26, 9:47 pm, James Gregory wrote:
> I've just committed a fix for this, let me know if there's any further
> issues with it.
>
> On Tue, May 26, 2009 at 9:00 AM, James Gregory wrote:
>
> > I think we've just found what this problem is
You're both right. Non-int non-guid ids default to using assigned, so
it's the same difference.
On Tuesday, May 26, 2009, Eyston wrote:
>
> I might be misunderstanding but ...
>
> If you specify the key in your code when you create the entity you'll
> want the generator to be 'assigned'.
>
> Id(
from what I tested the problem is solved... the generated mapping file
was missing the column names and now is OK!
still there is another issue to be solved: the plurar table names that
i'm specifying by default are not being applied to the subclassed
entity... in my database I need to have a Chi
I might be misunderstanding but ...
If you specify the key in your code when you create the entity you'll
want the generator to be 'assigned'.
Id(v => v.Id).GeneratedBy.Assigned().ColumnName("No_");
I use this since all the keys are natural in my legacy db (I hate
it ... a lot).
On May 26, 3:
See if this helps (this guy is trying to do the opposite of what you want
but he seems to be getting the thing you want to work):
http://stackoverflow.com/questions/695917/nhibernate-only-retrieve-specific-columns-when-using-critera-queries
On Tue, May 26, 2009 at 3:39 PM, Nigel wrote:
>
> Makes
I've just this minuted committed a change that should remedy this problem.
Let me know if updating to the latest trunk fixes things.
As for the convention you mentioned, you want an IManyToManyConvention, and
just set the parent key in there.
On Tue, May 26, 2009 at 8:24 PM, Rui Silvestre wrote:
I've just committed a fix for this, let me know if there's any further
issues with it.
On Tue, May 26, 2009 at 9:00 AM, James Gregory wrote:
> I think we've just found what this problem is in another thread, it's
> because conventions aren't being applied to automapped subclasses (and the
> conve
I've just committed a fix for this, let me know if there's any further
issues with it.
On Tue, May 26, 2009 at 8:58 AM, James Gregory wrote:
> It sounds like it, unless you apply Martin's patch yourself. I'm not sure
> why this has been missed so I (or one of the other devs if they read this,
> h
hi,
i'm having a strange problem related with the mapping using
inheritance since that i've updated to NHibernate 2.1 Alpha 1... I
use pure autogenerated mappings, and never needed any special
overriding. I just ported to the new sharp version. this inheritance
was working with the old convention
Makes sense - sorry for this - but what if it is a list of numbers?
Requiring something like a
var results = Query.List();
I tried this once before and got a SQL error, it did not seem to like
creating the query with the typeof and then returning results with a
different generic.
On May 26, 2:0
I got this to work by not specifying any generator. i.e.:
Id(x => x.Id).ColumnName("No_");
David Woods wrote:
> I am mapping against a legacy database that's primary key is strings not
> integers. Is there a way to use a string for the Id() mapping? (We can't
> add an artificial key to the dat
I am mapping against a legacy database that's primary key is strings not
integers. Is there a way to use a string for the Id() mapping? (We can't
add an artificial key to the database either).
--~--~-~--~~~---~--~~
You received this message because you are subscr
Try...
var value = (int) query.UniqueResult();
On Tue, May 26, 2009 at 1:53 PM, Nigel wrote:
>
> No I would like just one field. I only need the one field and figure
> it is more efficient to return one field but I remember having an
> error creating critera as typeof(Voucher) and then trying t
No I would like just one field. I only need the one field and figure
it is more efficient to return one field but I remember having an
error creating critera as typeof(Voucher) and then trying to do a
query.List();
I believe I use a Projection to select the field I want but I am not
sure how to d
Are you saying that you just want one row back or one integer value? If you
want just one row, you can do query.UniqueResult().
Jon
On Tue, May 26, 2009 at 11:40 AM, Nigel wrote:
>
> I have a table with several fields, I want to supply criteria for a
> couple of the fields but only want one fi
I have a table with several fields, I want to supply criteria for a
couple of the fields but only want one field back. So I create a query
with a typeof Voucher but in the results I only want to get one int
field back, rather than the whole table, var results =
query.List(). How do I do this?
pub
I think we've just found what this problem is in another thread, it's
because conventions aren't being applied to automapped subclasses (and the
conventions are responsible for setting the column names). I should
hopefully get a fix in for this tonight.
On Tue, May 26, 2009 at 8:53 AM, Darko Konra
It sounds like it, unless you apply Martin's patch yourself. I'm not sure
why this has been missed so I (or one of the other devs if they read this,
hint hint) will try to fix this ASAP.
On Tue, May 26, 2009 at 12:23 AM, Jon M wrote:
>
> So, sorry if this is a stupid question, does that mean tha
Hi guys,
I am having exactly the same issue like described above with the
revision r523 from http://fluentnhibernate.org/downloads
James: Can you please advise where to find the fixed version of the
library which resolves this issue?
Thanks a lot. Great project!
On 5 Mai, 23:21, James Gregory
19 matches
Mail list logo