Sleep mode using annotations

I learned that you can write SELECTwhere each line can be effectively mapped to an object:

Elegant ways to handle database views for sleep objects?

However, all answers use XML.

How is this done with annotations?

I use Hibernate 3.3.1 GAand Hibernate Annotations 3.4 GAwhich are part JBoss 5.1forJDK6

+3
source share
3 answers

You can definitely use annotations to display objects in tables. Essentially you need to use JPA (Java Persistence Annotation), there are also some Hibernate annotations that you could use.

, , , @Entity. /, , .

http://docs.jboss.org/hibernate/stable/annotations/reference/en/html_single/#entity

+1

, .
, bean,

0

, . ( Hibernate 3.6): Hibernate 3.6 Docs

0

All Articles