Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Teneo: create table fails without any warning message
Teneo: create table fails without any warning message [message #507871] Thu, 14 January 2010 23:01 Go to next message
Vincenzo Caselli is currently offline Vincenzo CaselliFriend
Messages: 51
Registered: July 2009
Member
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

Re: Teneo: create table fails without any warning message [message #507944 is a reply to message #507871] Fri, 15 January 2010 09:29 Go to previous message
Martin Taal is currently offline Martin TaalFriend
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
Previous Topic:Re: JMerger Example and Standalone Use
Next Topic:[CDO] Team plug-in retrieval for CDO 2.0?
Goto Forum:
  


Current Time: Fri Nov 15 00:49:42 GMT 2019

Powered by FUDForum. Page generated in 0.01952 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top