[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-6068?page=c...
]
Strong Liu reopened HHH-6068:
-----------------------------
reopen this since the test
_org.hibernate.test.annotations.id.sequences.HibernateSequenceTest#testHibernateSequenceNextVal_
fails on all DB (except H2)
{quote}
14:34:04,951 ERROR SqlExceptionHelper:144 - Unknown database 'hibernate;init=create
schema if not exists other_schema'
14:34:05,063 WARN SqlExceptionHelper:143 - SQL Error: 1049, SQLState: 42000
14:34:05,064 ERROR SqlExceptionHelper:144 - Unknown database 'hibernate;init=create
schema if not exists other_schema'
14:34:05,064 INFO SchemaExport:344 - HHH000227: Running hbm2ddl schema export
{quote}
JPA-specified default schema ignored for Hibernate sequences
------------------------------------------------------------
Key: HHH-6068
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-6068
Project: Hibernate Core
Issue Type: Bug
Components: core
Affects Versions: 3.5.6, 3.6.0, 3.6.1, 3.6.2
Reporter: Laird Nelson
Assignee: Steve Ebersole
Labels: jpa2
Fix For: 4.0.0.next
Attachments: hhh6068.tar.gz, hhh6068.tar.gz
Time Spent: 13m
The <persistence-unit-defaults> element in a JPA 2.0-compliant orm.xml file lets
you specify what you would like to have used as the default schema when none is specified
elsewhere. Hibernate ignores this element when referring to its own internal sequence,
"hibernate_sequence".
I suspect it also ignores the default catalog element as well.
The only workaround is to use the hibernate-specific hibernate.default_schema property.
IMHO Hibernate should honor the JPA orm.xml value if it is present.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira