call view through hibernate using jpa annotations

I need to call database view through hibernate using jpa annotations
RockingAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Jim CakalicConnect With a Mentor Senior Developer/ArchitectCommented:
Use the NamedNativeQuery annotation with a SQLResultSetMapping annotation if necessary to map the returned columns to your object. See the page below for examples. Plenty more if you google the two annotations.
    http://en.wikibooks.org/wiki/Java_Persistence/Querying#Native_SQL_Queries

Regards,
Jim
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.