|
Re: Teneo: create table fails without any warning message [message #507944 is a reply to message #507871] |
Fri, 15 January 2010 09:29 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Hi Vincenzo,
Teneo does not interfere directly in updating the db schema. It is done by Hibernate (the SchemaUpdate class). There is
a property on this class which determines if it should haltOnError (see the SchemaUpdate class) but it is apparently not
available as a configuration option:
http://opensource.atlassian.com/projects/hibernate/browse/HH H-3674
to have more control over the SchemaUpdate you can create your own Hb Data Store class (overriding the one you use now)
and then override the buildSessionFactory method and explicitly create (and set haltOnError to true) and call the
SchemaUpdate yourselve:
the call which was used before in Teneo was something like this:
new SchemaUpdate(getHibernateConfiguration()).execute(false, true);
(but you should check the SchemaUpdate api to see what fits best for you).
gr. Martin
Vincenzo Caselli wrote:
> Hi all,
> is thera a way to have Teneo showing a message when a CREATE TABLE
> statement does not succeed?
> Or, is there a way to have the CREATE TABLE statements logged?
> We are asking this because we do not obtain the creation of some table
> (due probably to long foreign key constraint clause - many fk constraint
> wiht long table names), but no exception, nor message is shown in the
> console.
> Please note that we are experiencing this into a JUnit4 test class.
>
> Thank you
> Vincenzo Caselli
> RCP Vision
>
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
Powered by
FUDForum. Page generated in 0.01968 seconds