Click here to Skip to main content
15,910,009 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to use XPath to parse the XML file? Pin
George_George5-Jan-09 22:34
George_George5-Jan-09 22:34 
AnswerRe: how to use XPath to parse the XML file? Pin
Abhijit Jana5-Jan-09 4:03
professionalAbhijit Jana5-Jan-09 4:03 
GeneralRe: how to use XPath to parse the XML file? Pin
George_George5-Jan-09 22:35
George_George5-Jan-09 22:35 
GeneralRe: how to use XPath to parse the XML file? Pin
Abhijit Jana6-Jan-09 0:53
professionalAbhijit Jana6-Jan-09 0:53 
QuestionRun .NET ActiveX control on IE 7.0 machine that doesnt have .NET installed. Pin
Dattatraya K5-Jan-09 2:51
Dattatraya K5-Jan-09 2:51 
AnswerCrossPost : Please Ignore Pin
Abhijit Jana5-Jan-09 2:57
professionalAbhijit Jana5-Jan-09 2:57 
AnswerRe: Run .NET ActiveX control on IE 7.0 machine that doesnt have .NET installed. Pin
Dave Kreskowiak5-Jan-09 3:51
mveDave Kreskowiak5-Jan-09 3:51 
QuestionInner/Nested classes with NHibernate Pin
devvvy5-Jan-09 2:41
devvvy5-Jan-09 2:41 
hello

guys, anyone know how to do mapping file for this? For example:


<hibernate-mapping xmlns="urn:nhibernate-mapping-2.0">

<class name="ThinkFundamentals.Util.Security.Person, ThinkFundamentals.Util.Security" table="Person">
<id name="Id" column="Id" type="Int64" unsaved-value="0">
<generator class="native" />
</id>
<property name="FirstName" column="FirstName" type="String(50)" />
<property name="MiddleName" column="MiddleName" type="String(50)" />
...

<!-- how to map this to ObjProperties table? -->
<property name="ObjProperties" type="Util.Object" ??? />
</class>
</hibernate-mapping>

There's a table named "ObjProperties", schema for example:

Id int
PersonId int /* references */
PropertyName varchar(50),
PropertyValue varchar(50)
...

And class "Util.Object.ObjProperties" is NOT a collection class, but it contains one.

class ObjectProperties
{
... other properties ...
Hashtable _properties = new HashTable(); &lt;&lt; See, that's the property collection.
...
}

I got a feeling this setup is not very nHibernate-friendly?

Thanks!

dev
AnswerRe: Inner/Nested classes with NHibernate Pin
realbart10-Sep-12 5:03
realbart10-Sep-12 5:03 
GeneralRe: Inner/Nested classes with NHibernate Pin
devvvy10-Sep-12 14:37
devvvy10-Sep-12 14:37 
QuestionThread safe issue in string operation Pin
George_George5-Jan-09 2:07
George_George5-Jan-09 2:07 
AnswerRe: Thread safe issue in string operation Pin
moon_stick5-Jan-09 2:30
moon_stick5-Jan-09 2:30 
GeneralRe: Thread safe issue in string operation Pin
George_George5-Jan-09 3:27
George_George5-Jan-09 3:27 
GeneralRe: Thread safe issue in string operation Pin
moon_stick5-Jan-09 3:36
moon_stick5-Jan-09 3:36 
GeneralRe: Thread safe issue in string operation Pin
George_George5-Jan-09 3:40
George_George5-Jan-09 3:40 
GeneralRe: Thread safe issue in string operation Pin
moon_stick5-Jan-09 4:10
moon_stick5-Jan-09 4:10 
GeneralRe: Thread safe issue in string operation Pin
George_George5-Jan-09 22:42
George_George5-Jan-09 22:42 
GeneralRe: Thread safe issue in string operation Pin
moon_stick6-Jan-09 0:34
moon_stick6-Jan-09 0:34 
GeneralRe: Thread safe issue in string operation Pin
George_George6-Jan-09 0:40
George_George6-Jan-09 0:40 
GeneralRe: Thread safe issue in string operation Pin
moon_stick6-Jan-09 0:45
moon_stick6-Jan-09 0:45 
GeneralRe: Thread safe issue in string operation Pin
George_George10-Jan-09 2:42
George_George10-Jan-09 2:42 
GeneralRe: Thread safe issue in string operation Pin
J4amieC5-Jan-09 4:19
J4amieC5-Jan-09 4:19 
GeneralRe: Thread safe issue in string operation Pin
George_George5-Jan-09 22:43
George_George5-Jan-09 22:43 
GeneralRe: Thread safe issue in string operation Pin
led mike5-Jan-09 5:10
led mike5-Jan-09 5:10 
GeneralRe: Thread safe issue in string operation Pin
moon_stick5-Jan-09 5:27
moon_stick5-Jan-09 5:27 

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.