Nham... =/
Ok...thanks for the answer, and for the workaround too! =)
Marco Antonio
http://www.paperscrap.com.br/
twitter: @marcoaoteixeira
De: Mauricio Scheffer mauricioschef...@gmail.com
Para: Castle Project Users castle-project-users@googlegroups.com
Thanks,
that's helped me to do one of the things i need.
but i now understand that i need more complex join.
suppose we have two table:
Board:
int ID
string Name
int BoardSize
game:
int ID
int BoardID
string PlayerName
string solveDate
now, i want to join those two tables by
Hm...you should really read the documentation. It's all really simple.
One possibility is using ICriterion:
ICriterion[] pQuery = {Expression.Eq(PlayerName,userName)};
Game.FindAll(pQuery);
or try HQL with SimpleQuery etc.
But first you should deliberate about wheter ActiveRecord/NHibernate
Stop thinking relational!
If you think in joins, you don't need AR or NH at all.
Your model should be instead:
class Board:
int Id
string Name
int Size
class Game:
int Id
*Board* Board // not int BoardId, we have objects here, not relations!
Player Player // same as before, player
Thanks,
You helped me a lot.
it's really much easier than i thought
On Wed, May 12, 2010 at 9:21 PM, Belvasis belvasis...@googlemail.comwrote:
Hm...you should really read the documentation. It's all really simple.
One possibility is using ICriterion:
ICriterion[] pQuery =
You definitely need to publish it!
I've been trying to find a solution to this for the past couple days
and the only thing I could come up with is creating child containers
and copying handlers from the parent down to the child and re-
registering them. That way, the child container == the