Hi Dan,
Jozef sent you email with the exception we was seeing I have attached
it below.
[testng] ERROR [org.hibernate.tool.hbm2ddl.SchemaExport]
Unsuccessful: create table seam.Person (username varchar(10) not
null, address varchar(600) not null, birthdate date, name
varchar(100) not null, primary key (username), unique (username))
[testng] ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] invalid
schema name: SEAM in statement [create table seam.Person]
[testng] ERROR [org.hibernate.tool.hbm2ddl.SchemaExport]
Unsuccessful: create table seam.Vehicle (registration varchar(8) not
null, state varchar(2) not null, make varchar(50) not null, model
varchar(50) not null, year integer not null, ownerUsername
varchar(10), primary key (registration, state))
[testng] ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] invalid
schema name: SEAM in statement [create table seam.Vehicle]
[testng] ERROR [org.hibernate.tool.hbm2ddl.SchemaExport]
Unsuccessful: alter table seam.Vehicle add constraint
FK779C270C2C1BBB19 foreignkey (ownerUsername) references seam.Person
[testng] ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] invalid
schema name: SEAM in statement [alter table seam.Vehicle]
I am not sure why hibernate is trying to do something with the DDL
at all. In project setup I've chosen that my tables are already at
database and I do not want then to be recreated each time.
I do get it now.
Datasource used for tests is not the same as default.
But the question why creating tables fail remains.
Dan, have you
seen this before?
This happens in both EAR and WAR project. To reproduce create new
project, generate entities, create new action and form and run
tests. Note that these errors do not affect test results.
\
On Nov 20, 2008, at 1:03 PM, Dan Allen wrote:
> Seam-gen - there are errors being displayed when the tests are
> running in
> seam-gen generated projects however tests pass.
What is the error? I am playing with seam-gen a bunch right now, so I
can check it out.
-Dan
--
Dan Allen
Software consultant | Author of Seam in Action
http://mojavelinux.com
http://mojavelinux.com/seaminaction
NOTE: While I make a strong effort to keep up with my email on a daily
basis, personal or other work matters can sometimes keep me away
from my email. If you contact me, but don't hear back for more than
a week,
it is very likely that I am excessively backlogged or the message was
caught in the spam filters. Please don't hesitate to resend a
message if
you feel that it did not reach my attention.