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

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -