java - How to configure "hibernate-mapping" to "field" -
i want specify via standard jpa persistence.createentitymanagerfactory(string,map<string,string>)
hibernate use "hibernate-mapping" "field" rather "property".
how can this, clean way?
jpa determines mapping type use based on put @id
annotation. if put @id
annotation on field mapping field-based.
update:
in jpa 2.0 can use @access
annotation. can apply class specify access type entire entity , can apply individual fields/methods override default single field/property.
Comments
Post a Comment