access data from two table
问题 Customer class have name property that corresponds to name field in customer table. Customer class also define the map that use for put the fieldName and fieldValue. on database customer name define in customer table and fieldvalue define in form table. now how i can retrieve customer name from customer table and fieldvalue from form table. in hbm file: <map name="formFields" table="form" cascade="all-delete-orphan" lazy="true"> <key column="id"/> <index column="fieldName" type="string"/>