How can I specify a default schema name for my persistence units?

Solution Verified - Updated -

Issue

  • How can I specify a default schema name for my persistence units so I don't have to define it in each persistence unique or each table definition such as

    @Table(name = "Person", catalog = "company")
    

Environment

  • JBoss Enterprise Application Platform
    • 4.2
    • 4.3
  • JBoss Hibernate (packaged with the EAP)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content