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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -