The moose likes JPA Certification (OCEJPA) and the fly likes what is Meta Model? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » JPA Certification (OCEJPA)
Bookmark "what is Meta Model?" Watch "what is Meta Model?" New topic

what is Meta Model?

Singh Harmeet
Ranch Hand

Joined: Aug 05, 2011
Posts: 115

what is Meta Model in JPA and it is the part of JPA exam?

With Regards :-
Harmeet Singh
Bobby Jakachira

Joined: Jun 01, 2010
Posts: 14
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).

Consider Paul's rocket mass heater.
subject: what is Meta Model?
It's not a secret anymore!