NHibernate
-
Hi I am using nHibeernate version 1.0.4., which I took from SourceForge.Net with the configuration settings given in the site itself. I am getting the follwing error in Mapping a file. Error Could not find a getter for property 'UN' in class 'Address.Info' A first chance exception of type 'System.NullReferenceException' occurred in Address.exe Please find below my code files: PLease replace < with '<' and > with '>'. class Info { private int id; private string UN; private string PN; } My mapping File with name Info.hbm.xml: <?xml version="1.0" encoding="utf-8" ?> <hibernate-mapping xmlns="urn:nhibernate-mapping-2.0"> <class name ="Address.Info, Address" table ="Info"> <id name ="Id" column="LoginID" type ="Int32" unsaved-value ="0"> <generator class="native" /> </id> <property name="UN" column="UN" type="String(50)" /> <property name="PN" column="PN" type="String(50)" /> </class> </hibernate-mapping> Could you please tell me what I need to do to reslove this issue?? Thanks in Advance With Regards, Puneet
-
Hi I am using nHibeernate version 1.0.4., which I took from SourceForge.Net with the configuration settings given in the site itself. I am getting the follwing error in Mapping a file. Error Could not find a getter for property 'UN' in class 'Address.Info' A first chance exception of type 'System.NullReferenceException' occurred in Address.exe Please find below my code files: PLease replace < with '<' and > with '>'. class Info { private int id; private string UN; private string PN; } My mapping File with name Info.hbm.xml: <?xml version="1.0" encoding="utf-8" ?> <hibernate-mapping xmlns="urn:nhibernate-mapping-2.0"> <class name ="Address.Info, Address" table ="Info"> <id name ="Id" column="LoginID" type ="Int32" unsaved-value ="0"> <generator class="native" /> </id> <property name="UN" column="UN" type="String(50)" /> <property name="PN" column="PN" type="String(50)" /> </class> </hibernate-mapping> Could you please tell me what I need to do to reslove this issue?? Thanks in Advance With Regards, Puneet
Well, have you looked around at NHibernate's documentation?
puneet.bhatnagar123@gmail.com wrote:
PLease replace < with '<' and > with '>'.
There is a checkbox at the bottom that says Ignore HTML tags in this message (good for code snippets)
"The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon