VivekSingh SinghVivek wrote:nameStyle, firstName ,lastName everthing is in customerInfo class. So in your mapping file change it to:- <class name="salesOrderSchema.Sales.Customer.CustomerInfo" table="SalesLT.Customer"> Thats a inner class.