How to specify Hibernate mappings from code without JPA -


i'm using hibernate native sql queries map results pojo. however, need mapping xml file binds column names property names. possible specify mapping directly code without jpa annotations?

or/mapping in code means must use annotations in entity class. without annotation, can complete mapping in code. can use hibernate annotation instead of jpa annotation.

for example, below annotations hibernate supports table mapping:

  • javax.persistence.table jpa annotation
  • org.hibernate.annotations.table hibernate annotation

Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -