• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what is Meta Model?

 
Singh Harmeet
Ranch Hand
Posts: 115
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is Meta Model in JPA and it is the part of JPA exam?
 
Bobby Jakachira
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes it is part of the exam

Metamodel API allows you to use STRONGLY typesafe queries when using Java persistence interface.

A simple example is you won't refer to column names in your queries with the physical column names but you utilise the Metamodel class of the entity.

Each entity have a corresponding Metamodel class

tbl_persons.age (table_name.column_name)

Person_.age (Metamodel).

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic