Res: Change HBM files location

2010-05-12 Thread Marco Teixeira
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

Re: how do i make simple join between two tables

2010-05-12 Thread Zvi Balas
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

Re: how do i make simple join between two tables

2010-05-12 Thread Belvasis
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

Re: how do i make simple join between two tables

2010-05-12 Thread Markus Zywitza
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

Re: how do i make simple join between two tables

2010-05-12 Thread Zvi Balas
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 =

Re: Configuring Windsor for shared instance

2010-05-12 Thread bling
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