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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.