typhos wrote:
Hi,
you can get the column names from a property with this code:
Code:
(AbstractEntityPersister)YourSessionFactory.GetClassMetadata(type).GetColumnNames(propName)
type = your class type
propName = name of the property
you'll get a string array from this call, because nhibernate can have multiple columns mapped per property. so you have to take the first element of this array if your properties are mapped to single columns...
hi,
thanks for reply, anyway, i'm using nhibernate version 1.2.0 beta 3, and unfortunate, it don't have the GetColumnNames method... kindly advice..