java - Hibernate .hbm to JPA annotations formula -


i've got hbm file containing

    <property         formula="concat(street, city, zipcode, country)"         generated="never" insert="false" lazy="false" name="initialaddress" type="java.lang.string"          update="false" /> 

and i'm not sure how convert jpa annotations

my current solution this

  @formula(value = "concat(street, city, zipcode, country)")   @basic(fetch = fetchtype.eager)   @transient   @generated(generationtime.never)   private string initialaddress; 

is correct? (i'm concerned insert, lazy , update part), maybe has link documentation how convert .hbm annotations (i can't find reliable annotation use insert, update, lazy,...)

...is there tool automatically convert .hbm .java files?


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

Ansible warning on jinja2 braces on when -