What is "catalog" used in a hibernate annotated class?

John picture John · Mar 9, 2011 · Viewed 19.4k times · Source

In a Java class I have seen the following:

@Table(name="user" , catalog="users"

For what purpose it is used?

Answer

Nilesh picture Nilesh · Mar 9, 2011

From Wikipedia:

The database catalog of a database instance consists of metadata in which definitions of database objects such as base tables, views (virtual tables), synonyms, value ranges, indexes, users, and user groups are stored.

Also, if your DB is MySQL, check this.

Hope that helps.