Joined: Thu Feb 01, 2007 12:57 pm Posts: 18
|
Hi everyone,
here is my problem :
<composite-id
name="id">
<key-property name="operationId"/>
<key-property name="requestId"/>
</composite-id>
I need to access in my code to the names of the key property i.e "operationId" & "requestId"
In fact i need them to display a datatable in JSF.
The only thing i did for the moment is :
SingleTableEntityPersister metadata = (SingleTableEntityPersister) sessionFactory.getClassMetadata(table);
String[] identitfierNames = metadata.getIdentifierColumnNames(); =>>return columns names
String identifierproperty =metadata.getIdentifierPropertyName();
=>>return composite id name...(here it's "id")
I really don't find how to get the name of these key property...
If anyone can help...
Thx
|
|