Click here to Skip to main content
15,903,362 members
Home / Discussions / Database
   

Database

 
GeneralProductColumn Pin
albCode6-Jun-05 2:42
albCode6-Jun-05 2:42 
GeneralRe: ProductColumn Pin
oykica6-Jun-05 7:14
oykica6-Jun-05 7:14 
GeneralRe: ProductColumn Pin
Colin Angus Mackay6-Jun-05 8:13
Colin Angus Mackay6-Jun-05 8:13 
GeneralRe: ProductColumn Pin
oykica7-Jun-05 7:14
oykica7-Jun-05 7:14 
GeneralRe: ProductColumn Pin
Colin Angus Mackay6-Jun-05 8:15
Colin Angus Mackay6-Jun-05 8:15 
GeneralRe: ProductColumn Pin
oykica7-Jun-05 6:59
oykica7-Jun-05 6:59 
GeneralNHibernate: Criteria query - Parent's property as select criteria. Pin
devvvy5-Jun-05 22:01
devvvy5-Jun-05 22:01 
GeneralRe: NHibernate: Criteria query - Parent's property as select criteria. Pin
Jeff Martin6-Jun-05 12:37
Jeff Martin6-Jun-05 12:37 
Caveat: I'm still learning nHibernate and I'm using Session.Find() instead of criteria.

What I had to do was use the unique value of the parent when searching for the child. Here's how I'm using it.

I have a class Employee, which contains a property Position (also a Hibernate class). In the database, Position is referenced through Employee.PositionID. When searching for all the Employees in a chosen Position, I do...

<br />
Position posToSearchFor = service.FindPositionByName("Test Position");<br />
session.Find("from Employee where PositionID = ?", posToSearchFor.ID.ToString(), NHibernate.Type.TypeFactory.GetStringType());<br />

GeneralRe: NHibernate: Criteria query - Parent's property as select criteria. Pin
devvvy6-Jun-05 16:18
devvvy6-Jun-05 16:18 
GeneralNumbers of rows different in Q.A and in E.M.!! Pin
under28115-Jun-05 18:20
under28115-Jun-05 18:20 
GeneralRe: Numbers of rows different in Q.A and in E.M.!! Pin
Colin Angus Mackay5-Jun-05 20:53
Colin Angus Mackay5-Jun-05 20:53 
GeneralRe: Numbers of rows different in Q.A and in E.M.!! Pin
under28115-Jun-05 21:21
under28115-Jun-05 21:21 
GeneralRe: Numbers of rows different in Q.A and in E.M.!! Pin
Colin Angus Mackay5-Jun-05 22:42
Colin Angus Mackay5-Jun-05 22:42 
GeneralRe: Numbers of rows different in Q.A and in E.M.!! Pin
Yulianto.5-Jun-05 22:45
Yulianto.5-Jun-05 22:45 
GeneralRe: Numbers of rows different in Q.A and in E.M.!! Pin
Colin Angus Mackay6-Jun-05 8:12
Colin Angus Mackay6-Jun-05 8:12 
GeneralRe: Numbers of rows different in Q.A and in E.M.!! Pin
Yulianto.6-Jun-05 16:02
Yulianto.6-Jun-05 16:02 
GeneralRe: Numbers of rows different in Q.A and in E.M.!! Pin
under28116-Jun-05 19:15
under28116-Jun-05 19:15 
GeneralSQL query builder from an App Pin
Leyu4-Jun-05 20:41
Leyu4-Jun-05 20:41 
GeneralRe: SQL query builder from an App Pin
niansah4-Jun-05 23:41
niansah4-Jun-05 23:41 
GeneralRe: SQL query builder from an App Pin
Leyu6-Jun-05 5:59
Leyu6-Jun-05 5:59 
GeneralRe: SQL query builder from an App Pin
niansah6-Jun-05 23:41
niansah6-Jun-05 23:41 
GeneralLoads of problems in VB .net Pin
Mega14-Jun-05 18:57
Mega14-Jun-05 18:57 
GeneralRe: Loads of problems in VB .net Pin
Colin Angus Mackay5-Jun-05 0:16
Colin Angus Mackay5-Jun-05 0:16 
GeneralRe: Loads of problems in VB .net Pin
Luis Alonso Ramos6-Jun-05 7:10
Luis Alonso Ramos6-Jun-05 7:10 
QuestionHow it is showing name of owner different than actual in sql server2000 Pin
under28113-Jun-05 17:51
under28113-Jun-05 17:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.