Skip to main content



      Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Plugin Dependencies
Plugin Dependencies [message #40417] Fri, 21 July 2006 08:17 Go to next message
Eclipse UserFriend
Originally posted by: rosskopf.progroup-inc.com

Hello List,

using teneo in CVS faces with the following stack-trace caused by a call
to buildSessionFactory from Hibernates Configuration class:

<snip>
14:13:23,140 ERROR HbDataStore:469 - Unable to build session factory!
org.hibernate.MappingException: Could not determine type for:
org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rUserType,
for columns: [org.hibernate.mapping.Column(econtainer_class),
org.hibernate.mapping.Column(e_container)]
at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:2 66)
at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:2 53)
at org.hibernate.mapping.Property.isValid(Property.java:185)
at org.hibernate.mapping.PersistentClass.validate(PersistentCla ss.java:395)
at org.hibernate.mapping.RootClass.validate(RootClass.java:192)
at org.hibernate.cfg.Configuration.validate(Configuration.java: 1026)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configur ation.java:1211)
at
org.eclipse.emf.teneo.hibernate.HbDataStore.buildSessionFact ory(HbDataStore.java:467)
at
org.eclipse.emf.teneo.hibernate.HbDataStore.initialize(HbDat aStore.java:188)
</snip>

I guess that is a problem with my plugin dependencies.
But I did not manage to find out what plugins dependant on each other.

Regards.
---
Joachim
Re: Plugin Dependencies [message #40542 is a reply to message #40417] Fri, 21 July 2006 15:51 Go to previous messageGo to next message
Eclipse UserFriend
Hi Joachim,
How are your current dependencies setup in the manifest.mf of the different projects (model,
editor)? Can you post the manifest.mf's for me?

gr. Martin

Joachim Rosskopf wrote:
> Hello List,
>
> using teneo in CVS faces with the following stack-trace caused by a call
> to buildSessionFactory from Hibernates Configuration class:
>
> <snip>
> 14:13:23,140 ERROR HbDataStore:469 - Unable to build session factory!
> org.hibernate.MappingException: Could not determine type for:
> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rUserType,
> for columns: [org.hibernate.mapping.Column(econtainer_class),
> org.hibernate.mapping.Column(e_container)]
> at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:2 66)
> at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:2 53)
> at org.hibernate.mapping.Property.isValid(Property.java:185)
> at
> org.hibernate.mapping.PersistentClass.validate(PersistentCla ss.java:395)
> at org.hibernate.mapping.RootClass.validate(RootClass.java:192)
> at org.hibernate.cfg.Configuration.validate(Configuration.java: 1026)
> at
> org.hibernate.cfg.Configuration.buildSessionFactory(Configur ation.java:1211)
>
> at
> org.eclipse.emf.teneo.hibernate.HbDataStore.buildSessionFact ory(HbDataStore.java:467)
>
> at
> org.eclipse.emf.teneo.hibernate.HbDataStore.initialize(HbDat aStore.java:188)
>
> </snip>
>
> I guess that is a problem with my plugin dependencies.
> But I did not manage to find out what plugins dependant on each other.
>
> Regards.
> ---
> Joachim



--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
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
Re: Plugin Dependencies [message #40570 is a reply to message #40542] Sat, 22 July 2006 02:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rosskopf.progroup-inc.com

Hello Martin,

the Manifest of my RCP Plugin is like this:
<snip>
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Capa Plug-in
Bundle-SymbolicName: com.lessmann.capa; singleton:=true
Bundle-Version: 0.0.1
Bundle-ClassPath: capa.jar
Bundle-Activator: com.lessmann.capa.Activator
Bundle-Vendor: LESSMANN
Bundle-Localization: plugin
Require-Bundle: org.eclipse.ui,
org.eclipse.ui.forms,
org.eclipse.core.runtime,
com.toolsforjobs.log4j,
com.toolsforjobs.util,
com.toolsforjobs.lib.orm,
com.lessmann.capa.model,
com.lessmann.capa.model.edit,
com.lessmann.capa.model.editor
Eclipse-LazyStart: false
Bundle-RequiredExecutionEnvironment: J2SE-1.5
</snip>

The Code of the EMF Model, which contains the Mediator, calling
initialize in HbDataStore, has the following Manifest:
<snip>
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Model Plug-in
Bundle-SymbolicName: com.lessmann.capa.model; singleton:=true
Bundle-Version: 1.0.0
Bundle-ClassPath: model.jar
Bundle-Activator: com.lessmann.capa.model.Activator
Bundle-Vendor: LESSMANN
Bundle-Localization: plugin
Require-Bundle: com.toolsforjobs.log4j,
com.toolsforjobs.util,
com.toolsforjobs.lib.orm,
org.eclipse.ui,
org.eclipse.core.runtime,
org.eclipse.core.resources,
org.eclipse.emf,
org.eclipse.emf.ecore,
org.eclipse.emf.ecore.sdo,
org.eclipse.emf.ecore.xmi,
org.eclipse.emf.teneo.hibernate,
org.junit4
Eclipse-LazyStart: true
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Export-Package: com.lessmann.capa.model,
com.lessmann.capa.model.impl,
com.lessmann.capa.model.test,
com.lessmann.capa.model.util
</snip>

Thats is all a little bit confusing to me.
Thank you in advance!
---
Joachim
Re: Plugin Dependencies [message #40600 is a reply to message #40570] Sat, 22 July 2006 05:34 Go to previous messageGo to next message
Eclipse UserFriend
Hi Joachim,
The problem is (afaics) related to the fact that hibernate can not see the Teneo class
org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rUserType.

Where are your hibernate libraries? In teneo the hibernate libraries are not provided as part of the
download because of different licensing.
The hibernate jars should preferably in a separate plugin which is added to the dependency tab of
your model plugin then the registerbuddy mechanism should be used to let hibernate know about the
rest of the classes. You can read about this here: http://www.hibernate.org/311.html.

Another thing you might add to the Manifest.MF (in the manifest.mf tab of the manifest editor):
Eclipse-RegisterBuddy: org.eclipse.emf.teneo.hibernate

Note that this part of Teneo (plugin/classpath resolving in a rcp) has not been tested yet. The
junit tests for Teneo Hibernate work fine for the most (except for featuremap issue with Callisto
release which I mentioned earlier).

gr. Martin

Joachim Rosskopf wrote:
> Hello Martin,
>
> the Manifest of my RCP Plugin is like this:
> <snip>
> Manifest-Version: 1.0
> Bundle-ManifestVersion: 2
> Bundle-Name: Capa Plug-in
> Bundle-SymbolicName: com.lessmann.capa; singleton:=true
> Bundle-Version: 0.0.1
> Bundle-ClassPath: capa.jar
> Bundle-Activator: com.lessmann.capa.Activator
> Bundle-Vendor: LESSMANN
> Bundle-Localization: plugin
> Require-Bundle: org.eclipse.ui,
> org.eclipse.ui.forms,
> org.eclipse.core.runtime,
> com.toolsforjobs.log4j,
> com.toolsforjobs.util,
> com.toolsforjobs.lib.orm,
> com.lessmann.capa.model,
> com.lessmann.capa.model.edit,
> com.lessmann.capa.model.editor
> Eclipse-LazyStart: false
> Bundle-RequiredExecutionEnvironment: J2SE-1.5
> </snip>
>
> The Code of the EMF Model, which contains the Mediator, calling
> initialize in HbDataStore, has the following Manifest:
> <snip>
> Manifest-Version: 1.0
> Bundle-ManifestVersion: 2
> Bundle-Name: Model Plug-in
> Bundle-SymbolicName: com.lessmann.capa.model; singleton:=true
> Bundle-Version: 1.0.0
> Bundle-ClassPath: model.jar
> Bundle-Activator: com.lessmann.capa.model.Activator
> Bundle-Vendor: LESSMANN
> Bundle-Localization: plugin
> Require-Bundle: com.toolsforjobs.log4j,
> com.toolsforjobs.util,
> com.toolsforjobs.lib.orm,
> org.eclipse.ui,
> org.eclipse.core.runtime,
> org.eclipse.core.resources,
> org.eclipse.emf,
> org.eclipse.emf.ecore,
> org.eclipse.emf.ecore.sdo,
> org.eclipse.emf.ecore.xmi,
> org.eclipse.emf.teneo.hibernate,
> org.junit4
> Eclipse-LazyStart: true
> Bundle-RequiredExecutionEnvironment: J2SE-1.5
> Export-Package: com.lessmann.capa.model,
> com.lessmann.capa.model.impl,
> com.lessmann.capa.model.test,
> com.lessmann.capa.model.util
> </snip>
>
> Thats is all a little bit confusing to me.
> Thank you in advance!
> ---
> Joachim


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
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
Re: Plugin Dependencies [message #40631 is a reply to message #40600] Sun, 23 July 2006 06:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rosskopf.progroup-inc.com

Hey Martin,

I luckily managed to get teneo running.
I don´t know really why and how. After deleting all the Jar-Plugins and
creating them like you explained it worked!

But unfortunally I´m running into the next problem.
I´m using the following piece of code to initialize my model root class;
<snip>
log.debug("Fetching MachineList ... begin transaction;");
Session session = dataStore.getSessionFactory().openSession();
session.beginTransaction();
try {
Query query = session.createQuery("FROM MachineList");
List list = query.list();
if(list.size() > 0) {
machines = (MachineList)list.get(0);
machines.getMachines();
} else {
machines = ModelFactory.INSTANCE.createMachineList();
session.saveOrUpdate(machines);
log.debug("No machines in database ... bootstrapping;");
}
session.getTransaction().commit();
firePropertyChange("initialized", false, true);
} catch (Exception e) {
session.getTransaction().rollback();
log.error("Unable to initalize MachineList;", e);
} finally {
session.close();
}
</snap>

But the EMF-generated editors show me an error in my TreeViewer:
<snip>
org.hibernate.LazyInitializationException: failed to lazily initialize a
collection of role: MachineList.machines, no session or session was closed
</snip>

The last log output is:
<snip>
11:54:50,424 DEBUG IdentifierCacheHandler:70 - Setting id: 146 for
object com.lessmann.capa.model.impl.MachineListImpl in idcache
11:54:50,455 DEBUG IdentifierCacheHandler:97 - Setting version: 0 for
object com.lessmann.capa.model.impl.MachineListImpl in idcache
11:54:50,470 DEBUG EListPropertyHandler:206 - Set value
org.hibernate.collection.PersistentList for target
com.lessmann.capa.model.impl.MachineListImpl field machines
11:54:51,627 DEBUG HibernatePersistableEList:76 - Started loading elist
EList of type:
org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList
of member machines owned by com.lessmann.capa.model.impl.MachineListImpl
with delegate list org.hibernate.collection.PersistentList
11:54:51,627 DEBUG HibernatePersistableEList:100 - EList is not loaded
in session context
</snip>

If I try to add a new Machine to my MachineList and presist it with the
following code:
<snip>
Session session = dataStore.getSessionFactory().openSession();
session.beginTransaction();
try {
machines.getMachines().add(machine);
session.saveOrUpdate(machines);
session.getTransaction().commit();
} catch (Exception e) {
log.error("Unable to save machine list;", e);
session.getTransaction().rollback();
} finally {
session.close();
}
</snip>

I get an exception like this
<snip>
11:57:17,205 ERROR ModelMediator:96 - Unable to save machine list;
org.hibernate.LazyInitializationException: failed to lazily initialize a
collection of role: MachineList.machines, no session or session was closed
</snip>

Again I am confused!
Thank you and nice Sunday!
---
Joachim
Re: Plugin Dependencies [message #40662 is a reply to message #40631] Sun, 23 July 2006 07:12 Go to previous messageGo to next message
Eclipse UserFriend
Hi Joachim,
The machines list (which you get when calling machines.getMachineList()) is not loaded when you
commit the transaction (because it is lazily loaded). The call to getMachines does not load it
either, only a call on the list itself will load it (e.g. getMachines().size()). Then when you
access the list through the tree viewer (I guess that you open a subtree) the system tries to load
the list and because there is no session the getMachines will fail with the exception you mention.

Also in the second code snippet you mention. You do the call:
> machines.getMachines().add(machine);

before the call
> session.saveOrUpdate(machines);

So when you do the .add call on getMachines it will try to load the list while the machines object
is not yet attached to the session.
If you do the session.update(machines) before the call to getMachines then it should work better.

The same for actions on the tree if you retrieve the children then you need to open a session,
attach the parent object and return the children.

Btw, to check if a list is already loaded you can cast it to HibernatePersistableEList and then call
isLoaded(). If it is already loaded then you don't need to open a session.

gr. Martin

Joachim Rosskopf wrote:
> Hey Martin,
>
> I luckily managed to get teneo running.
> I don´t know really why and how. After deleting all the Jar-Plugins and
> creating them like you explained it worked!
>
> But unfortunally I´m running into the next problem.
> I´m using the following piece of code to initialize my model root class;
> <snip>
> log.debug("Fetching MachineList ... begin transaction;");
> Session session = dataStore.getSessionFactory().openSession();
> session.beginTransaction();
> try {
> Query query = session.createQuery("FROM MachineList");
> List list = query.list();
> if(list.size() > 0) {
> machines = (MachineList)list.get(0);
> machines.getMachines();
> } else {
> machines = ModelFactory.INSTANCE.createMachineList();
> session.saveOrUpdate(machines);
> log.debug("No machines in database ... bootstrapping;");
> }
> session.getTransaction().commit();
> firePropertyChange("initialized", false, true);
> } catch (Exception e) {
> session.getTransaction().rollback();
> log.error("Unable to initalize MachineList;", e);
> } finally {
> session.close();
> }
> </snap>
>
> But the EMF-generated editors show me an error in my TreeViewer:
> <snip>
> org.hibernate.LazyInitializationException: failed to lazily initialize a
> collection of role: MachineList.machines, no session or session was closed
> </snip>
>
> The last log output is:
> <snip>
> 11:54:50,424 DEBUG IdentifierCacheHandler:70 - Setting id: 146 for
> object com.lessmann.capa.model.impl.MachineListImpl in idcache
> 11:54:50,455 DEBUG IdentifierCacheHandler:97 - Setting version: 0 for
> object com.lessmann.capa.model.impl.MachineListImpl in idcache
> 11:54:50,470 DEBUG EListPropertyHandler:206 - Set value
> org.hibernate.collection.PersistentList for target
> com.lessmann.capa.model.impl.MachineListImpl field machines
> 11:54:51,627 DEBUG HibernatePersistableEList:76 - Started loading elist
> EList of type:
> org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList
> of member machines owned by com.lessmann.capa.model.impl.MachineListImpl
> with delegate list org.hibernate.collection.PersistentList
> 11:54:51,627 DEBUG HibernatePersistableEList:100 - EList is not loaded
> in session context
> </snip>
>
> If I try to add a new Machine to my MachineList and presist it with the
> following code:
> <snip>
> Session session = dataStore.getSessionFactory().openSession();
> session.beginTransaction();
> try {
> machines.getMachines().add(machine);
> session.saveOrUpdate(machines);
> session.getTransaction().commit();
> } catch (Exception e) {
> log.error("Unable to save machine list;", e);
> session.getTransaction().rollback();
> } finally {
> session.close();
> }
> </snip>
>
> I get an exception like this
> <snip>
> 11:57:17,205 ERROR ModelMediator:96 - Unable to save machine list;
> org.hibernate.LazyInitializationException: failed to lazily initialize a
> collection of role: MachineList.machines, no session or session was closed
> </snip>
>
> Again I am confused!
> Thank you and nice Sunday!
> ---
> Joachim


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
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
Re: Plugin Dependencies [message #40693 is a reply to message #40662] Sun, 23 July 2006 09:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rosskopf.progroup-inc.com

Hello Martin,

thank you for being so patient.
The loading works fine for me now. And I can save exactly one Machine.
But if I try to save the second one I get the following error:

<snip>
15:01:43,142 ERROR ModelMediator:102 - Unable to save machine list;
org.hibernate.HibernateException: Don't change the reference to a
collection with cascade="all-delete-orphan": WorkWeek.days
</snip>

I use the following code now:
<snip>
Session session = dataStore.getSessionFactory().openSession();
session.beginTransaction();
try {
session.update(machines);
machines.getMachines().add(machine);

session.getTransaction().commit();
} catch (Exception e) {
log.error("Unable to save machine list;", e);
session.getTransaction().rollback();
} finally {
session.close();
}

So you told me to attach all new instances to the session. I tried so :-).

<snip>
Session session = dataStore.getSessionFactory().openSession();
session.beginTransaction();
try {
if (machine != null) {
session.update(machines);
machines.getMachines().add(machine);

if (machine.getWorkWeek() != null) {
session.save(machine);
WorkWeek workWeek = machine.getWorkWeek();

if(workWeek.getDays().size() > 0) {
session.save(workWeek);
}
}
}
session.getTransaction().commit();
} catch (Exception e) {
log.error("Unable to save machine list;", e);
session.getTransaction().rollback();
} finally {
session.close();
}
</snip>

Now every parent-object should be attached to the session. But I get the
same error as above. Hmm. Would you give me a hint once again?

Regards
---
Joachim
Re: Plugin Dependencies [message #40724 is a reply to message #40693] Sun, 23 July 2006 14:12 Go to previous messageGo to next message
Eclipse UserFriend
Hi Joachim,
Never had that exception, my guess it would say that you use one instance of a list in two locations
(I think the days list is used in two or more WorkWeek's), but I am guessing here.
Maybe the following applies to your case:
http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=g et_topic&f=78&t=001232

Looking at the second piece of code, the part in which you separately save the WorkWeek is not
required, it should have been automatically saved together with its parent (the machine).

gr. Martin

Joachim Rosskopf wrote:
> Hello Martin,
>
> thank you for being so patient.
> The loading works fine for me now. And I can save exactly one Machine.
> But if I try to save the second one I get the following error:
>
> <snip>
> 15:01:43,142 ERROR ModelMediator:102 - Unable to save machine list;
> org.hibernate.HibernateException: Don't change the reference to a
> collection with cascade="all-delete-orphan": WorkWeek.days
> </snip>
>
> I use the following code now:
> <snip>
> Session session = dataStore.getSessionFactory().openSession();
> session.beginTransaction();
> try {
> session.update(machines);
> machines.getMachines().add(machine);
>
> session.getTransaction().commit();
> } catch (Exception e) {
> log.error("Unable to save machine list;", e);
> session.getTransaction().rollback();
> } finally {
> session.close();
> }
>
> So you told me to attach all new instances to the session. I tried so :-).
>
> <snip>
> Session session = dataStore.getSessionFactory().openSession();
> session.beginTransaction();
> try {
> if (machine != null) {
> session.update(machines);
> machines.getMachines().add(machine);
>
> if (machine.getWorkWeek() != null) {
> session.save(machine);
> WorkWeek workWeek = machine.getWorkWeek();
>
> if(workWeek.getDays().size() > 0) {
> session.save(workWeek);
> }
> }
> }
> session.getTransaction().commit();
> } catch (Exception e) {
> log.error("Unable to save machine list;", e);
> session.getTransaction().rollback();
> } finally {
> session.close();
> }
> </snip>
>
> Now every parent-object should be attached to the session. But I get the
> same error as above. Hmm. Would you give me a hint once again?
>
> Regards
> ---
> Joachim


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
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
Re: Plugin Dependencies [message #40992 is a reply to message #40724] Wed, 26 July 2006 03:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rosskopf.progroup-inc.com

Hello Martin,

as far as I understand the exception "Don't change the reference to a
collection with cascade="all-delete-orphan": WorkWeek.days" has
something to do with PK-FK handling of many-to-many relations. And I
thought exactly that is the teneo/elver part?

The strange thing is, that the first insertion in an empty database
works well.

But if I try to assemble the second one and do the following:
<snip>
Session session = dataStore.getSessionFactory().openSession();
session.beginTransaction();
try {
if (machine != null) {
session.update(machines);
Machine m = ModelFactory.INSTANCE.createMachine();
WorkWeek w = ModelFactory.INSTANCE.createWorkWeek();
w.getDays().add(ModelFactory.INSTANCE.createWorkDay());
w.getDays().add(ModelFactory.INSTANCE.createWorkDay());
w.getDays().add(ModelFactory.INSTANCE.createWorkDay());
w.getDays().add(ModelFactory.INSTANCE.createWorkDay());
w.getDays().add(ModelFactory.INSTANCE.createWorkDay());
w.getDays().add(ModelFactory.INSTANCE.createWorkDay());
w.getDays().add(ModelFactory.INSTANCE.createWorkDay());
m.setMachineId("test");
m.setWorkWeek(w);

machines.getMachines().add(m);
}
session.getTransaction().commit();
} catch (Exception e) {
log.error("Unable to save machine list;", e);
session.getTransaction().rollback();
} finally {
session.close();
}
</snip>

This should create a new machine in the machinelist (which already
contains exactly 1 machine). But it doesn´t. And I don´t know, where
something can go wrong within my code (That are all newly created
instances).

Can´t there something be wrong IdentifiertCacheHandler or something like
that?

Regards
---
Joachim


Martin Taal wrote:
> Hi Joachim,
> Never had that exception, my guess it would say that you use one
> instance of a list in two locations (I think the days list is used in
> two or more WorkWeek's), but I am guessing here.
> Maybe the following applies to your case:
> http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=g et_topic&f=78&t=001232
>
>
> Looking at the second piece of code, the part in which you separately
> save the WorkWeek is not required, it should have been automatically
> saved together with its parent (the machine).
>
> gr. Martin
Re: Plugin Dependencies [message #41023 is a reply to message #40992] Wed, 26 July 2006 03:27 Go to previous messageGo to next message
Eclipse UserFriend
Hi Joachim,
Can you upload/send the mapping file? Can be retrieved from the HbDataStore with getMappingXML.

gr. Martin

Joachim Rosskopf wrote:
> Hello Martin,
>
> as far as I understand the exception "Don't change the reference to a
> collection with cascade="all-delete-orphan": WorkWeek.days" has
> something to do with PK-FK handling of many-to-many relations. And I
> thought exactly that is the teneo/elver part?
>
> The strange thing is, that the first insertion in an empty database
> works well.
>
> But if I try to assemble the second one and do the following:
> <snip>
> Session session = dataStore.getSessionFactory().openSession();
> session.beginTransaction();
> try {
> if (machine != null) {
> session.update(machines);
> Machine m = ModelFactory.INSTANCE.createMachine();
> WorkWeek w = ModelFactory.INSTANCE.createWorkWeek();
> w.getDays().add(ModelFactory.INSTANCE.createWorkDay());
> w.getDays().add(ModelFactory.INSTANCE.createWorkDay());
> w.getDays().add(ModelFactory.INSTANCE.createWorkDay());
> w.getDays().add(ModelFactory.INSTANCE.createWorkDay());
> w.getDays().add(ModelFactory.INSTANCE.createWorkDay());
> w.getDays().add(ModelFactory.INSTANCE.createWorkDay());
> w.getDays().add(ModelFactory.INSTANCE.createWorkDay());
> m.setMachineId("test");
> m.setWorkWeek(w);
>
> machines.getMachines().add(m);
> }
> session.getTransaction().commit();
> } catch (Exception e) {
> log.error("Unable to save machine list;", e);
> session.getTransaction().rollback();
> } finally {
> session.close();
> }
> </snip>
>
> This should create a new machine in the machinelist (which already
> contains exactly 1 machine). But it doesn´t. And I don´t know, where
> something can go wrong within my code (That are all newly created
> instances).
>
> Can´t there something be wrong IdentifiertCacheHandler or something like
> that?
>
> Regards
> ---
> Joachim
>
>
> Martin Taal wrote:
>> Hi Joachim,
>> Never had that exception, my guess it would say that you use one
>> instance of a list in two locations (I think the days list is used in
>> two or more WorkWeek's), but I am guessing here.
>> Maybe the following applies to your case:
>> http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=g et_topic&f=78&t=001232
>>
>>
>> Looking at the second piece of code, the part in which you separately
>> save the WorkWeek is not required, it should have been automatically
>> saved together with its parent (the machine).
>>
>> gr. Martin


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
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
Re: Plugin Dependencies [message #41054 is a reply to message #41023] Wed, 26 July 2006 03:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rosskopf.progroup-inc.com

This is a multi-part message in MIME format.
--------------050507070701040006060208
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hey Martin,

sorry to reach by email, was a mistake.
Attached the mapping XML

Regards
---
Joachim

Martin Taal wrote:
> Hi Joachim,
> Can you upload/send the mapping file? Can be retrieved from the
> HbDataStore with getMappingXML.
>
> gr. Martin

--------------050507070701040006060208
Content-Type: text/xml;
name="mapping.xml"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="mapping.xml"

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<!-- Generated by Elver Store tools on Wed Jul 26 09:30:50 CEST 2006 -->
<hibernate-mapping>
<class entity-name="CapacityEntry" abstract="false" lazy="false" discriminator-value="CapacityEntry" table="`capacityentry`">
<id type="long">
<generator class="native"/>
</id>
<discriminator column="`dtype`" type="string"/>
<version name="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler "/>
<property name="capacityEntryId" type="java.lang.String" lazy="false" column="`capacityentryid`" not-null="false" unique="false"/>
<property name="name" type="java.lang.String" lazy="false" column="`name`" not-null="false" unique="false"/>
</class>
<class entity-name="Machine" abstract="false" lazy="false" discriminator-value="Machine" table="`machine`">
<id type="long">
<generator class="native"/>
</id>
<discriminator column="`dtype`" type="string"/>
<version name="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler "/>
<many-to-one name="workWeek" entity-name="WorkWeek" cascade="all" lazy="false" insert="true" update="true" not-null="true">
<column not-null="true" unique="false" name="`workweek_id`"/>
</many-to-one>
<property name="machineId" type="java.lang.String" lazy="false" column="`machineid`" not-null="false" unique="false"/>
<property name="machineSearchString" type="java.lang.String" lazy="false" column="`machinesearchstring`" not-null="false" unique="false"/>
<property name="multiplicity" type="int" lazy="false" column="`multiplicity`" not-null="false" unique="false"/>
<property name="taskSearchString" type="java.lang.String" lazy="false" column="`tasksearchstring`" not-null="false" unique="false"/>
</class>
<class entity-name="MachineList" abstract="false" lazy="false" discriminator-value="MachineList" table="`machinelist`">
<id type="long">
<generator class="native"/>
</id>
<discriminator column="`dtype`" type="string"/>
<version name="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler "/>
<list name="machines" lazy="true" cascade="all,delete-orphan">
<key update="true">
<column name="`machines_id`" not-null="false" unique="false"/>
</key>
<list-index column="`machinelist_machines_idx`"/>
<one-to-many entity-name="Machine"/>
</list>
</class>
<class entity-name="Production" abstract="false" lazy="false" discriminator-value="Production" table="`production`">
<id type="long">
<generator class="native"/>
</id>
<discriminator column="`dtype`" type="string"/>
<version name="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler "/>
<property name="article" type="java.lang.String" lazy="false" column="`article`" not-null="false" unique="false"/>
<property name="dueTime" type="serializable" lazy="false" column="`duetime`" not-null="false" unique="false"/>
<property name="missingAmount" type="float" lazy="false" column="`missingamount`" not-null="false" unique="false"/>
<property name="productionId" type="java.lang.String" lazy="false" column="`productionid`" not-null="false" unique="false"/>
<property name="startTime" type="serializable" lazy="false" column="`starttime`" not-null="false" unique="false"/>
<property name="totalAmount" type="float" lazy="false" column="`totalamount`" not-null="false" unique="false"/>
</class>
<class entity-name="Task" abstract="false" lazy="false" discriminator-value="Task" table="`task`">
<id type="long">
<generator class="native"/>
</id>
<discriminator column="`dtype`" type="string"/>
<version name="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler "/>
<many-to-one name="capacityEntry" entity-name="CapacityEntry" cascade="all" lazy="false" insert="true" update="true" not-null="true">
<column not-null="true" unique="false" name="`capacityentry_id`"/>
</many-to-one>
<many-to-one name="production" entity-name="Production" cascade="all" lazy="false" insert="true" update="true" not-null="true">
<column not-null="true" unique="false" name="`production_id`"/>
</many-to-one>
<property name="name" type="java.lang.String" lazy="false" column="`name`" not-null="false" unique="false"/>
<property name="taskId" type="java.lang.String" lazy="false" column="`taskid`" not-null="false" unique="false"/>
<property name="timePerPice" type="float" lazy="false" column="`timeperpice`" not-null="false" unique="false"/>
<property name="timePerPreperation" type="float" lazy="false" column="`timeperpreperation`" not-null="false" unique="false"/>
</class>
<class entity-name="WorkDay" abstract="false" lazy="false" discriminator-value="WorkDay" table="`workday`">
<id type="long">
<generator class="native"/>
</id>
<discriminator column="`dtype`" type="string"/>
<version name="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler "/>
<property name="dayOfWeek" type="int" lazy="false" column="`dayofweek`" not-null="false" unique="false"/>
<property name="duration" type="int" lazy="false" column="`duration`" not-null="false" unique="false"/>
<property name="startTime" type="int" lazy="false" column="`starttime`" not-null="false" unique="false"/>
</class>
<class entity-name="WorkWeek" abstract="false" lazy="false" discriminator-value="WorkWeek" table="`workweek`">
<id type="long">
<generator class="native"/>
</id>
<discriminator column="`dtype`" type="string"/>
<version name="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler "/>
<list name="days" lazy="true" cascade="all,delete-orphan">
<key update="true">
<column name="`days_id`" not-null="false" unique="false"/>
</key>
<list-index column="`workweek_days_idx`"/>
<one-to-many entity-name="WorkDay"/>
</list>
<property name="workWeekId" type="java.lang.String" lazy="false" column="`workweekid`" not-null="false" unique="false"/>
</class>
</hibernate-mapping>


--------------050507070701040006060208--
Re: Plugin Dependencies [message #41085 is a reply to message #41054] Wed, 26 July 2006 03:42 Go to previous messageGo to next message
Eclipse UserFriend
Hi Joachim,
Mapping file looks fine (after a quick look).
Can you also upload the ecore or xsd? Then I can try to replicate this on my side.

gr. Martin

Joachim Rosskopf wrote:
> Hey Martin,
>
> sorry to reach by email, was a mistake.
> Attached the mapping XML
>
> Regards
> ---
> Joachim
>
> Martin Taal wrote:
>> Hi Joachim,
>> Can you upload/send the mapping file? Can be retrieved from the
>> HbDataStore with getMappingXML.
>>
>> gr. Martin
>
> ------------------------------------------------------------ ------------
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
>
> <!-- Generated by Elver Store tools on Wed Jul 26 09:30:50 CEST 2006 -->
> <hibernate-mapping>
> <class entity-name="CapacityEntry" abstract="false" lazy="false" discriminator-value="CapacityEntry" table="`capacityentry`">
> <id type="long">
> <generator class="native"/>
> </id>
> <discriminator column="`dtype`" type="string"/>
> <version name="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler "/>
> <property name="capacityEntryId" type="java.lang.String" lazy="false" column="`capacityentryid`" not-null="false" unique="false"/>
> <property name="name" type="java.lang.String" lazy="false" column="`name`" not-null="false" unique="false"/>
> </class>
> <class entity-name="Machine" abstract="false" lazy="false" discriminator-value="Machine" table="`machine`">
> <id type="long">
> <generator class="native"/>
> </id>
> <discriminator column="`dtype`" type="string"/>
> <version name="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler "/>
> <many-to-one name="workWeek" entity-name="WorkWeek" cascade="all" lazy="false" insert="true" update="true" not-null="true">
> <column not-null="true" unique="false" name="`workweek_id`"/>
> </many-to-one>
> <property name="machineId" type="java.lang.String" lazy="false" column="`machineid`" not-null="false" unique="false"/>
> <property name="machineSearchString" type="java.lang.String" lazy="false" column="`machinesearchstring`" not-null="false" unique="false"/>
> <property name="multiplicity" type="int" lazy="false" column="`multiplicity`" not-null="false" unique="false"/>
> <property name="taskSearchString" type="java.lang.String" lazy="false" column="`tasksearchstring`" not-null="false" unique="false"/>
> </class>
> <class entity-name="MachineList" abstract="false" lazy="false" discriminator-value="MachineList" table="`machinelist`">
> <id type="long">
> <generator class="native"/>
> </id>
> <discriminator column="`dtype`" type="string"/>
> <version name="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler "/>
> <list name="machines" lazy="true" cascade="all,delete-orphan">
> <key update="true">
> <column name="`machines_id`" not-null="false" unique="false"/>
> </key>
> <list-index column="`machinelist_machines_idx`"/>
> <one-to-many entity-name="Machine"/>
> </list>
> </class>
> <class entity-name="Production" abstract="false" lazy="false" discriminator-value="Production" table="`production`">
> <id type="long">
> <generator class="native"/>
> </id>
> <discriminator column="`dtype`" type="string"/>
> <version name="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler "/>
> <property name="article" type="java.lang.String" lazy="false" column="`article`" not-null="false" unique="false"/>
> <property name="dueTime" type="serializable" lazy="false" column="`duetime`" not-null="false" unique="false"/>
> <property name="missingAmount" type="float" lazy="false" column="`missingamount`" not-null="false" unique="false"/>
> <property name="productionId" type="java.lang.String" lazy="false" column="`productionid`" not-null="false" unique="false"/>
> <property name="startTime" type="serializable" lazy="false" column="`starttime`" not-null="false" unique="false"/>
> <property name="totalAmount" type="float" lazy="false" column="`totalamount`" not-null="false" unique="false"/>
> </class>
> <class entity-name="Task" abstract="false" lazy="false" discriminator-value="Task" table="`task`">
> <id type="long">
> <generator class="native"/>
> </id>
> <discriminator column="`dtype`" type="string"/>
> <version name="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler "/>
> <many-to-one name="capacityEntry" entity-name="CapacityEntry" cascade="all" lazy="false" insert="true" update="true" not-null="true">
> <column not-null="true" unique="false" name="`capacityentry_id`"/>
> </many-to-one>
> <many-to-one name="production" entity-name="Production" cascade="all" lazy="false" insert="true" update="true" not-null="true">
> <column not-null="true" unique="false" name="`production_id`"/>
> </many-to-one>
> <property name="name" type="java.lang.String" lazy="false" column="`name`" not-null="false" unique="false"/>
> <property name="taskId" type="java.lang.String" lazy="false" column="`taskid`" not-null="false" unique="false"/>
> <property name="timePerPice" type="float" lazy="false" column="`timeperpice`" not-null="false" unique="false"/>
> <property name="timePerPreperation" type="float" lazy="false" column="`timeperpreperation`" not-null="false" unique="false"/>
> </class>
> <class entity-name="WorkDay" abstract="false" lazy="false" discriminator-value="WorkDay" table="`workday`">
> <id type="long">
> <generator class="native"/>
> </id>
> <discriminator column="`dtype`" type="string"/>
> <version name="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler "/>
> <property name="dayOfWeek" type="int" lazy="false" column="`dayofweek`" not-null="false" unique="false"/>
> <property name="duration" type="int" lazy="false" column="`duration`" not-null="false" unique="false"/>
> <property name="startTime" type="int" lazy="false" column="`starttime`" not-null="false" unique="false"/>
> </class>
> <class entity-name="WorkWeek" abstract="false" lazy="false" discriminator-value="WorkWeek" table="`workweek`">
> <id type="long">
> <generator class="native"/>
> </id>
> <discriminator column="`dtype`" type="string"/>
> <version name="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler "/>
> <list name="days" lazy="true" cascade="all,delete-orphan">
> <key update="true">
> <column name="`days_id`" not-null="false" unique="false"/>
> </key>
> <list-index column="`workweek_days_idx`"/>
> <one-to-many entity-name="WorkDay"/>
> </list>
> <property name="workWeekId" type="java.lang.String" lazy="false" column="`workweekid`" not-null="false" unique="false"/>
> </class>
> </hibernate-mapping>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
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
Re: Plugin Dependencies [message #41147 is a reply to message #41085] Wed, 26 July 2006 03:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rosskopf.progroup-inc.com

This is a multi-part message in MIME format.
--------------040305020108080908020708
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hello Martin,

so it also did for me.
Here comes the XSD and the generated ecore.

Thank you for the very fast reply.
Regards
---
Joachim

Martin Taal wrote:
> Hi Joachim,
> Mapping file looks fine (after a quick look).
> Can you also upload the ecore or xsd? Then I can try to replicate this
> on my side.
>
> gr. Martin
>

--------------040305020108080908020708
Content-Type: text/xml;
name="capa.xsd"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="capa.xsd"

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:capa="http:///com.lessmann.capa.model/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http:///com.lessmann.capa.model/">



<xsd:complexType name="Machine">
<xsd:sequence maxOccurs="1" minOccurs="1">
<xsd:element name="WorkWeek" type="capa:WorkWeek" maxOccurs="1" minOccurs="1"></xsd:element>
<xsd:element name="Tasks" type="capa:Task" maxOccurs="unbounded" minOccurs="0">
<xsd:annotation>
<xsd:appinfo source="http://ejb.elver.org/Transient">true</xsd:appinfo>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="MachineId" type="xsd:string"></xsd:attribute>
<xsd:attribute name="MachineSearchString" type="xsd:string"></xsd:attribute>
<xsd:attribute name="TaskSearchString" type="xsd:string"></xsd:attribute>
<xsd:attribute name="Multiplicity" type="xsd:int"></xsd:attribute>
</xsd:complexType>


<xsd:complexType name="WorkDay">
<xsd:attribute name="StartTime" type="xsd:int"></xsd:attribute>
<xsd:attribute name="Duration" type="xsd:int"></xsd:attribute>
<xsd:attribute name="DayOfWeek" type="xsd:int"></xsd:attribute>
</xsd:complexType>

<xsd:complexType name="WorkWeek">
<xsd:sequence>
<xsd:element name="Days" type="capa:WorkDay" minOccurs="0" maxOccurs="7"></xsd:element>
</xsd:sequence>
<xsd:attribute name="WorkWeekId" type="xsd:string"></xsd:attribute>
</xsd:complexType>

<xsd:complexType name="Task">
<xsd:sequence>
<xsd:element name="CapacityEntry"
type="capa:CapacityEntry" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element name="Production" type="capa:Production"
maxOccurs="1" minOccurs="1">
</xsd:element>
</xsd:sequence>
<xsd:attribute name="TaskId" type="xsd:string"></xsd:attribute>
<xsd:attribute name="Name" type="xsd:string"></xsd:attribute>
<xsd:attribute name="TimePerPice" type="xsd:float"></xsd:attribute>
<xsd:attribute name="TimePerPreperation" type="xsd:float"></xsd:attribute>
</xsd:complexType>

<xsd:complexType name="CapacityEntry">
<xsd:attribute name="CapacityEntryId" type="xsd:string"></xsd:attribute>
<xsd:attribute name="Name" type="xsd:string"></xsd:attribute>
</xsd:complexType>

<xsd:complexType name="Production">
<xsd:attribute name="ProductionId" type="xsd:string"></xsd:attribute>
<xsd:attribute name="Article" type="xsd:string"></xsd:attribute>
<xsd:attribute name="TotalAmount" type="xsd:float"></xsd:attribute>
<xsd:attribute name="MissingAmount" type="xsd:float"></xsd:attribute>
<xsd:attribute name="StartTime" type="xsd:date"></xsd:attribute>
<xsd:attribute name="DueTime" type="xsd:date"></xsd:attribute>
</xsd:complexType>

<xsd:complexType name="MachineList">
<xsd:sequence>
<xsd:element name="Machines" type="capa:Machine" maxOccurs="unbounded" minOccurs="0"></xsd:element>
</xsd:sequence></xsd:complexType>
</xsd:schema>

--------------040305020108080908020708
Content-Type: text/xml;
name="model.ecore"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="model.ecore"

<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="model"
nsURI="http:///com.lessmann.capa.model/" nsPrefix="model">
<eClassifiers xsi:type="ecore:EClass" name="CapacityEntry">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="CapacityEntry"/>
<details key="kind" value="empty"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="capacityEntryId" unique="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="CapacityEntryId"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" unique="false" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="Name"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Machine">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="Machine"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="workWeek" lowerBound="1"
eType="#//WorkWeek" containment="true" resolveProxies="false">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="WorkWeek"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="tasks" upperBound="-1"
eType="#//Task" containment="true" resolveProxies="false">
<eAnnotations source="http://ejb.elver.org/Transient">
<details key="appinfo" value="true"/>
</eAnnotations>
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="Tasks"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="machineId" unique="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="MachineId"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="machineSearchString" unique="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="MachineSearchString"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="multiplicity" unique="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Int" unsettable="true">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="Multiplicity"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="taskSearchString" unique="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="TaskSearchString"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="MachineList">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="MachineList"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="machines" upperBound="-1"
eType="#//Machine" containment="true" resolveProxies="false">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="Machines"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Production">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="Production"/>
<details key="kind" value="empty"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="article" unique="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="Article"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="dueTime" unique="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Date">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="DueTime"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="missingAmount" unique="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Float" unsettable="true">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="MissingAmount"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="productionId" unique="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="ProductionId"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="startTime" unique="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Date">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="StartTime"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="totalAmount" unique="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Float" unsettable="true">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="TotalAmount"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Task">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="Task"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="capacityEntry" lowerBound="1"
eType="#//CapacityEntry" containment="true" resolveProxies="false">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="CapacityEntry"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="production" lowerBound="1"
eType="#//Production" containment="true" resolveProxies="false">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="Production"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" unique="false" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="Name"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="taskId" unique="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="TaskId"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="timePerPice" unique="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Float" unsettable="true">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="TimePerPice"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="timePerPreperation" unique="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Float" unsettable="true">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="TimePerPreperation"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="WorkDay">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="WorkDay"/>
<details key="kind" value="empty"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="dayOfWeek" unique="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Int" unsettable="true">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="DayOfWeek"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="duration" unique="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Int" unsettable="true">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="Duration"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="startTime" unique="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Int" unsettable="true">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="StartTime"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="WorkWeek">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="WorkWeek"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="days" upperBound="7" eType="#//WorkDay"
containment="true" resolveProxies="false">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="Days"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="workWeekId" unique="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="WorkWeekId"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
</ecore:EPackage>

--------------040305020108080908020708
Content-Type: text/xml;
name="capa.genmodel"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="capa.genmodel"

<?xml version="1.0" encoding="UTF-8"?>
<genmodel:GenModel xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/com.lessmann.capa.model/src"
modelPluginID="com.lessmann.capa.model" modelName="Capa" rootExtendsInterface=""
rootExtendsClass="org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl " rootImplementsInterface="org.eclipse.emf.ecore.sdo.InternalEDataObject "
suppressEMFTypes="true" suppressEMFMetaData="true" featureMapWrapperInterface="commonj.sdo.Sequence"
featureMapWrapperInternalInterface="org.eclipse.emf.ecore.sdo.util.ESequence "
featureMapWrapperClass="org.eclipse.emf.ecore.sdo.util.BasicESequence " richClientPlatform="true"
codeFormatting="true" importerID="org.eclipse.xsd.ecore.importer" containmentProxies="true"
minimalReflectiveMethods="false">
<foreignModel>capa.xsd</foreignModel>
<staticPackages>http://www.eclipse.org/emf/2003/SDO</staticPackages>
<modelPluginVariables>EMF_COMMONJ_SDO=org.eclipse.emf.commonj.sdo </modelPluginVariables>
<modelPluginVariables>EMF_ECORE_SDO=org.eclipse.emf.ecore.sdo </modelPluginVariables>
<genPackages prefix="Model" basePackage="com.lessmann.capa" resource="XML" disposableProviderFactory="true"
ecorePackage="model.ecore#/">
<genClasses ecoreClass="model.ecore#//CapacityEntry">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//CapacityEntry/capacityEntryId"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//CapacityEntry/name"/>
</genClasses>
<genClasses ecoreClass="model.ecore#//Machine">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference model.ecore#//Machine/workWeek"/>
<genFeatures property="Readonly" children="true" createChild="true" propertyMultiLine="true"
propertySortChoices="true" ecoreFeature="ecore:EReference model.ecore#//Machine/tasks"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Machine/machineId"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Machine/machineSearchString"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Machine/multiplicity"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Machine/taskSearchString"/>
</genClasses>
<genClasses ecoreClass="model.ecore#//MachineList">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference model.ecore#//MachineList/machines"/>
</genClasses>
<genClasses ecoreClass="model.ecore#//Production">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Production/article"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Production/dueTime"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Production/missingAmount"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Production/productionId"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Production/startTime"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Production/totalAmount"/>
</genClasses>
<genClasses ecoreClass="model.ecore#//Task">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference model.ecore#//Task/capacityEntry"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference model.ecore#//Task/production"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Task/name"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Task/taskId"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Task/timePerPice"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Task/timePerPreperation"/>
</genClasses>
<genClasses ecoreClass="model.ecore#//WorkDay">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//WorkDay/dayOfWeek"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//WorkDay/duration"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//WorkDay/startTime"/>
</genClasses>
<genClasses ecoreClass="model.ecore#//WorkWeek">
<genFeatures createChild="false" ecoreFeature="ecore:EReference model.ecore#//WorkWeek/days"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//WorkWeek/workWeekId"/>
</genClasses>
</genPackages>
</genmodel:GenModel>

--------------040305020108080908020708--
Re: Plugin Dependencies [message #41244 is a reply to message #41147] Wed, 26 July 2006 05:05 Go to previous messageGo to next message
Eclipse UserFriend
Hi Joachim,
I tested it and it works fine for me (get 2 machines in the db). Just need to ask but is this if
statement correct:
if (machine != null)

is this true? or should it be:
if (machines != null)

gr. Martin

Joachim Rosskopf wrote:
> Hello Martin,
>
> so it also did for me.
> Here comes the XSD and the generated ecore.
>
> Thank you for the very fast reply.
> Regards
> ---
> Joachim
>
> Martin Taal wrote:
>> Hi Joachim,
>> Mapping file looks fine (after a quick look).
>> Can you also upload the ecore or xsd? Then I can try to replicate this
>> on my side.
>>
>> gr. Martin
>>
>
> ------------------------------------------------------------ ------------
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xsd:schema xmlns:capa="http:///com.lessmann.capa.model/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http:///com.lessmann.capa.model/">
>
>
>
> <xsd:complexType name="Machine">
> <xsd:sequence maxOccurs="1" minOccurs="1">
> <xsd:element name="WorkWeek" type="capa:WorkWeek" maxOccurs="1" minOccurs="1"></xsd:element>
> <xsd:element name="Tasks" type="capa:Task" maxOccurs="unbounded" minOccurs="0">
> <xsd:annotation>
> <xsd:appinfo source="http://ejb.elver.org/Transient">true</xsd:appinfo>
> </xsd:annotation>
> </xsd:element>
> </xsd:sequence>
> <xsd:attribute name="MachineId" type="xsd:string"></xsd:attribute>
> <xsd:attribute name="MachineSearchString" type="xsd:string"></xsd:attribute>
> <xsd:attribute name="TaskSearchString" type="xsd:string"></xsd:attribute>
> <xsd:attribute name="Multiplicity" type="xsd:int"></xsd:attribute>
> </xsd:complexType>
>
>
> <xsd:complexType name="WorkDay">
> <xsd:attribute name="StartTime" type="xsd:int"></xsd:attribute>
> <xsd:attribute name="Duration" type="xsd:int"></xsd:attribute>
> <xsd:attribute name="DayOfWeek" type="xsd:int"></xsd:attribute>
> </xsd:complexType>
>
> <xsd:complexType name="WorkWeek">
> <xsd:sequence>
> <xsd:element name="Days" type="capa:WorkDay" minOccurs="0" maxOccurs="7"></xsd:element>
> </xsd:sequence>
> <xsd:attribute name="WorkWeekId" type="xsd:string"></xsd:attribute>
> </xsd:complexType>
>
> <xsd:complexType name="Task">
> <xsd:sequence>
> <xsd:element name="CapacityEntry"
> type="capa:CapacityEntry" minOccurs="1" maxOccurs="1">
> </xsd:element>
> <xsd:element name="Production" type="capa:Production"
> maxOccurs="1" minOccurs="1">
> </xsd:element>
> </xsd:sequence>
> <xsd:attribute name="TaskId" type="xsd:string"></xsd:attribute>
> <xsd:attribute name="Name" type="xsd:string"></xsd:attribute>
> <xsd:attribute name="TimePerPice" type="xsd:float"></xsd:attribute>
> <xsd:attribute name="TimePerPreperation" type="xsd:float"></xsd:attribute>
> </xsd:complexType>
>
> <xsd:complexType name="CapacityEntry">
> <xsd:attribute name="CapacityEntryId" type="xsd:string"></xsd:attribute>
> <xsd:attribute name="Name" type="xsd:string"></xsd:attribute>
> </xsd:complexType>
>
> <xsd:complexType name="Production">
> <xsd:attribute name="ProductionId" type="xsd:string"></xsd:attribute>
> <xsd:attribute name="Article" type="xsd:string"></xsd:attribute>
> <xsd:attribute name="TotalAmount" type="xsd:float"></xsd:attribute>
> <xsd:attribute name="MissingAmount" type="xsd:float"></xsd:attribute>
> <xsd:attribute name="StartTime" type="xsd:date"></xsd:attribute>
> <xsd:attribute name="DueTime" type="xsd:date"></xsd:attribute>
> </xsd:complexType>
>
> <xsd:complexType name="MachineList">
> <xsd:sequence>
> <xsd:element name="Machines" type="capa:Machine" maxOccurs="unbounded" minOccurs="0"></xsd:element>
> </xsd:sequence></xsd:complexType>
> </xsd:schema>
>
>
> ------------------------------------------------------------ ------------
>
> <?xml version="1.0" encoding="UTF-8"?>
> <ecore:EPackage xmi:version="2.0"
> xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="model"
> nsURI="http:///com.lessmann.capa.model/" nsPrefix="model">
> <eClassifiers xsi:type="ecore:EClass" name="CapacityEntry">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="name" value="CapacityEntry"/>
> <details key="kind" value="empty"/>
> </eAnnotations>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="capacityEntryId" unique="false"
> eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="CapacityEntryId"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" unique="false" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="Name"/>
> </eAnnotations>
> </eStructuralFeatures>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="Machine">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="name" value="Machine"/>
> <details key="kind" value="elementOnly"/>
> </eAnnotations>
> <eStructuralFeatures xsi:type="ecore:EReference" name="workWeek" lowerBound="1"
> eType="#//WorkWeek" containment="true" resolveProxies="false">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="WorkWeek"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EReference" name="tasks" upperBound="-1"
> eType="#//Task" containment="true" resolveProxies="false">
> <eAnnotations source="http://ejb.elver.org/Transient">
> <details key="appinfo" value="true"/>
> </eAnnotations>
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="Tasks"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="machineId" unique="false"
> eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="MachineId"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="machineSearchString" unique="false"
> eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="MachineSearchString"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="multiplicity" unique="false"
> eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Int" unsettable="true">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="Multiplicity"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="taskSearchString" unique="false"
> eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="TaskSearchString"/>
> </eAnnotations>
> </eStructuralFeatures>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="MachineList">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="name" value="MachineList"/>
> <details key="kind" value="elementOnly"/>
> </eAnnotations>
> <eStructuralFeatures xsi:type="ecore:EReference" name="machines" upperBound="-1"
> eType="#//Machine" containment="true" resolveProxies="false">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="Machines"/>
> </eAnnotations>
> </eStructuralFeatures>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="Production">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="name" value="Production"/>
> <details key="kind" value="empty"/>
> </eAnnotations>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="article" unique="false"
> eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="Article"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="dueTime" unique="false"
> eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Date">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="DueTime"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="missingAmount" unique="false"
> eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Float" unsettable="true">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="MissingAmount"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="productionId" unique="false"
> eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="ProductionId"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="startTime" unique="false"
> eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Date">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="StartTime"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="totalAmount" unique="false"
> eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Float" unsettable="true">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="TotalAmount"/>
> </eAnnotations>
> </eStructuralFeatures>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="Task">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="name" value="Task"/>
> <details key="kind" value="elementOnly"/>
> </eAnnotations>
> <eStructuralFeatures xsi:type="ecore:EReference" name="capacityEntry" lowerBound="1"
> eType="#//CapacityEntry" containment="true" resolveProxies="false">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="CapacityEntry"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EReference" name="production" lowerBound="1"
> eType="#//Production" containment="true" resolveProxies="false">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="Production"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" unique="false" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="Name"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="taskId" unique="false"
> eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="TaskId"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="timePerPice" unique="false"
> eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Float" unsettable="true">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="TimePerPice"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="timePerPreperation" unique="false"
> eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Float" unsettable="true">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="TimePerPreperation"/>
> </eAnnotations>
> </eStructuralFeatures>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="WorkDay">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="name" value="WorkDay"/>
> <details key="kind" value="empty"/>
> </eAnnotations>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="dayOfWeek" unique="false"
> eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Int" unsettable="true">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="DayOfWeek"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="duration" unique="false"
> eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Int" unsettable="true">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="Duration"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="startTime" unique="false"
> eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Int" unsettable="true">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="StartTime"/>
> </eAnnotations>
> </eStructuralFeatures>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="WorkWeek">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="name" value="WorkWeek"/>
> <details key="kind" value="elementOnly"/>
> </eAnnotations>
> <eStructuralFeatures xsi:type="ecore:EReference" name="days" upperBound="7" eType="#//WorkDay"
> containment="true" resolveProxies="false">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="Days"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="workWeekId" unique="false"
> eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="WorkWeekId"/>
> </eAnnotations>
> </eStructuralFeatures>
> </eClassifiers>
> </ecore:EPackage>
>
>
> ------------------------------------------------------------ ------------
>
> <?xml version="1.0" encoding="UTF-8"?>
> <genmodel:GenModel xmi:version="2.0"
> xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
> xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/com.lessmann.capa.model/src"
> modelPluginID="com.lessmann.capa.model" modelName="Capa" rootExtendsInterface=""
> rootExtendsClass="org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl " rootImplementsInterface="org.eclipse.emf.ecore.sdo.InternalEDataObject "
> suppressEMFTypes="true" suppressEMFMetaData="true" featureMapWrapperInterface="commonj.sdo.Sequence"
> featureMapWrapperInternalInterface="org.eclipse.emf.ecore.sdo.util.ESequence "
> featureMapWrapperClass="org.eclipse.emf.ecore.sdo.util.BasicESequence " richClientPlatform="true"
> codeFormatting="true" importerID="org.eclipse.xsd.ecore.importer" containmentProxies="true"
> minimalReflectiveMethods="false">
> <foreignModel>capa.xsd</foreignModel>
> <staticPackages>http://www.eclipse.org/emf/2003/SDO</staticPackages>
> <modelPluginVariables>EMF_COMMONJ_SDO=org.eclipse.emf.commonj.sdo </modelPluginVariables>
> <modelPluginVariables>EMF_ECORE_SDO=org.eclipse.emf.ecore.sdo </modelPluginVariables>
> <genPackages prefix="Model" basePackage="com.lessmann.capa" resource="XML" disposableProviderFactory="true"
> ecorePackage="model.ecore#/">
> <genClasses ecoreClass="model.ecore#//CapacityEntry">
> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//CapacityEntry/capacityEntryId"/>
> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//CapacityEntry/name"/>
> </genClasses>
> <genClasses ecoreClass="model.ecore#//Machine">
> <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference model.ecore#//Machine/workWeek"/>
> <genFeatures property="Readonly" children="true" createChild="true" propertyMultiLine="true"
> propertySortChoices="true" ecoreFeature="ecore:EReference model.ecore#//Machine/tasks"/>
> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Machine/machineId"/>
> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Machine/machineSearchString"/>
> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Machine/multiplicity"/>
> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Machine/taskSearchString"/>
> </genClasses>
> <genClasses ecoreClass="model.ecore#//MachineList">
> <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference model.ecore#//MachineList/machines"/>
> </genClasses>
> <genClasses ecoreClass="model.ecore#//Production">
> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Production/article"/>
> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Production/dueTime"/>
> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Production/missingAmount"/>
> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Production/productionId"/>
> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Production/startTime"/>
> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Production/totalAmount"/>
> </genClasses>
> <genClasses ecoreClass="model.ecore#//Task">
> <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference model.ecore#//Task/capacityEntry"/>
> <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference model.ecore#//Task/production"/>
> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Task/name"/>
> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Task/taskId"/>
> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Task/timePerPice"/>
> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Task/timePerPreperation"/>
> </genClasses>
> <genClasses ecoreClass="model.ecore#//WorkDay">
> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//WorkDay/dayOfWeek"/>
> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//WorkDay/duration"/>
> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//WorkDay/startTime"/>
> </genClasses>
> <genClasses ecoreClass="model.ecore#//WorkWeek">
> <genFeatures createChild="false" ecoreFeature="ecore:EReference model.ecore#//WorkWeek/days"/>
> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//WorkWeek/workWeekId"/>
> </genClasses>
> </genPackages>
> </genmodel:GenModel>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
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
Re: Plugin Dependencies [message #42121 is a reply to message #41244] Fri, 28 July 2006 00:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rosskopf.progroup-inc.com

This is a multi-part message in MIME format.
--------------050203060307090008070803
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Hello Martin,

would you like to help me another time.
I can
Re: Plugin Dependencies [message #42186 is a reply to message #42121] Fri, 28 July 2006 02:25 Go to previous messageGo to next message
Eclipse UserFriend
This is a multi-part message in MIME format.
--------------090108020801060009030906
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Hi Joachim,
You mean the addMachine doesn't work? When you debug through it does it run correctly through this
method? But the machine does not get added in the db?

Can you post the log? If you stop just after the commit in addMachine then that would be best probably.

I have attached a log4j.properties which you can use, change every word error in debug and you would
get the most info.

gr. Martin

Joachim Rosskopf wrote:
> Hello Martin,
>
> would you like to help me another time.
> I can
Re: Plugin Dependencies [message #43291 is a reply to message #42186] Wed, 02 August 2006 09:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rosskopf.progroup-inc.com

This is a multi-part message in MIME format.
--------------060305070809030905090607
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Hello Martin,

addMachine doesn
Re: Plugin Dependencies [message #43366 is a reply to message #43291] Thu, 03 August 2006 05:37 Go to previous messageGo to next message
Eclipse UserFriend
Hi Joachim,
I did my best to reproduce this issue and the I accomplished this by reusing the elist instance
stored in a WorkWeek days member in another WorkWeek (this is not allowed). Is this something you
are doing?

Another question I had is if it is okay if I add your model as a testcase to Teneo?

Btw, I am on holiday so I don't check my email on a daily basis. So it can take a few days before I
can react.

gr. Martin

Joachim Rosskopf wrote:
> Hello Martin,
>
> addMachine doesn´t work! The call session.getTransaction().commit();
> Throws a HibernateException.
>
> Attached you get the log of the complete session, with exactly one
> machine in the list.
>
> Thank you in advance.
> Regards
> ---
> Joachim
>
> Martin Taal wrote:
>> Hi Joachim,
>> You mean the addMachine doesn't work? When you debug through it does
>> it run correctly through this method? But the machine does not get
>> added in the db?
>>
>> Can you post the log? If you stop just after the commit in addMachine
>> then that would be best probably.
>>
>> I have attached a log4j.properties which you can use, change every
>> word error in debug and you would get the most info.
>>
>> gr. Martin
>>
>> Joachim Rosskopf wrote:
>>> Hello Martin,
>>>
>>> would you like to help me another time.
>>> I can´t find my mistake. Put it´s probably my mediator code.
>>> I´ll attach it, and if you have some minutes it would be very nice if
>>> you have an eye on it.
>>>
>>> Thank you in advance!
>>> Regards
>>> ---
>>> Joachim
>>>
>>> Martin Taal wrote:
>>>> Hi Joachim,
>>>> I tested it and it works fine for me (get 2 machines in the db).
>>>> Just need to ask but is this if statement correct:
>>>> if (machine != null)
>>>>
>>>> is this true? or should it be:
>>>> if (machines != null)
>>>>
>>>> gr. Martin
>>>>
>>>> Joachim Rosskopf wrote:
>>>
>>> ------------------------------------------------------------ ------------
>>>
>>> package com.lessmann.capa.model.util;
>>>
>>> import org.apache.commons.logging.Log;
>>> import org.apache.commons.logging.LogFactory;
>>> import org.eclipse.emf.ecore.EPackage;
>>> import org.eclipse.emf.teneo.hibernate.HbDataStore;
>>> import org.eclipse.emf.teneo.hibernate.HbHelper;
>>> import
>>> org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList;
>>> import org.hibernate.Query;
>>> import org.hibernate.Session;
>>> import org.hibernate.SessionFactory;
>>>
>>> import java.io.IOException;
>>> import java.net.URL;
>>> import java.sql.PreparedStatement;
>>> import java.sql.ResultSet;
>>> import java.sql.SQLException;
>>> import java.util.ArrayList;
>>> import java.util.List;
>>> import java.util.Properties;
>>>
>>> import com.lessmann.capa.model.Activator;
>>> import com.lessmann.capa.model.CapacityEntry;
>>> import com.lessmann.capa.model.Machine;
>>> import com.lessmann.capa.model.MachineList;
>>> import com.lessmann.capa.model.ModelFactory;
>>> import com.lessmann.capa.model.Production;
>>> import com.lessmann.capa.model.Task;
>>> import com.lessmann.capa.model.WorkWeek;
>>> import com.lessmann.capa.model.impl.ModelPackageImpl;
>>> import com.toolsforjobs.util.misc.PropertyObservableBase;
>>>
>>> public class ModelMediator extends PropertyObservableBase {
>>> public static final ModelMediator INSTANCE = new ModelMediator();
>>> private static Log log = LogFactory.getLog(ModelMediator.class);
>>> protected HbDataStore dataStore;
>>> protected MachineList machines;
>>> private ModelMediator() {
>>> dataStore =
>>> HbHelper.INSTANCE.createRegisterDataStore("ModelDataStore");
>>> dataStore.setEPackages(new EPackage[]
>>> {ModelPackageImpl.eINSTANCE});
>>> }
>>> private class TaskListProxy {
>>> PreparedStatement stmt;
>>> TaskListProxy() {
>>> StringBuilder query = new StringBuilder();
>>> query.append("SELECT DISTINCT aprp.pos,
>>> aprp.prnr, aprk.art, res.rsnr, res.bez1 as res_bez, res.wznr, res.ts,
>>> ");
>>> query.append("res.tr, res.rnr, ress.bez1 as ress_bez,
>>> aprp.ianz, aprp.anz, aprk.ldat, aprk.dat ");
>>> query.append("FROM res, ress, aprp, aprk WHERE ");
>>> query.append("res.wznr LIKE ? AND ");
>>> query.append("res.bez1 LIKE ? AND ");
>>> query.append("res.ts > 0.0 AND ");
>>> query.append("ress.rsnr = res.rnr AND ");
>>> query.append("aprp.ianz > 0.0 AND ");
>>> query.append("aprp.snr_res = res.rsnr AND ");
>>> query.append("aprk.prnr = aprp.prnr AND ");
>>> query.append("aprk.erl != 1 ");
>>> query.append("ORDER BY res.wznr; ");
>>> Session session =
>>> dataStore.getSessionFactory().openSession();
>>> try {
>>> stmt =
>>> session.connection().prepareStatement(query.toString());
>>> } catch (SQLException sqlex) {
>>> log.error("Unable to build statement for task list
>>> query;", sqlex);
>>> } finally {
>>> session.close();
>>> }
>>> }
>>> List loadTasks(Machine machine) {
>>> if (stmt != null && machine != null) {
>>> try {
>>> List tasks = new ArrayList();
>>> String machiness =
>>> machine.getMachineSearchString().replace('*', '%');
>>> String taskss =
>>> machine.getTaskSearchString().replace('*', '%');
>>> stmt.setString(1, machiness);
>>> stmt.setString(2, taskss);
>>> ResultSet resultset =
>>> stmt.executeQuery();
>>> while (resultset.next()) {
>>> Task task = ModelFactory.INSTANCE.createTask();
>>> task.setTaskId(resultset.getString("rsnr"));
>>> task.setName(resultset.getString("res_bez"));
>>> task.setTimePerPice(resultset.getFloat("ts"));
>>>
>>> task.setTimePerPreperation(resultset.getFloat("tr"));
>>> CapacityEntry cpentry
>>> = ModelFactory.INSTANCE.createCapacityEntry();
>>>
>>> cpentry.setCapacityEntryId(resultset.getString("rnr"));
>>>
>>> cpentry.setName(resultset.getString("ress_bez"));
>>> task.setCapacityEntry(cpentry);
>>> Production production
>>> = ModelFactory.INSTANCE.createProduction();
>>>
>>> production.setProductionId(resultset.getString("prnr"));
>>>
>>> production.setArticle(resultset.getString("art"));
>>> // TODO add parsing of the date here
>>> production.setStartTime(null);
>>> production.setDueTime(null);
>>>
>>> production.setTotalAmount(resultset.getFloat("anz"));
>>>
>>> production.setMissingAmount(resultset.getFloat("ianz"));
>>> task.setProduction(production);
>>> tasks.add(task);
>>> }
>>> resultset.close();
>>> stmt.close();
>>>
>>> firePropertyChange("taskListLoaded", false, true);
>>> return tasks;
>>> } catch (SQLException sqlex) {
>>> log.error("Unable to set arguments in statement
>>> for task list query;", sqlex);
>>> }
>>> }
>>> return new ArrayList<Task>();
>>> }
>>> }
>>> public void initialize() {
>>> if (Activator.getDefault() != null) {
>>> log.debug("Loading properties;");
>>> dataStore.setHibernateProperties(loadHbProperties());
>>> }
>>> log.debug("Initialize dataStore;");
>>> dataStore.initialize();
>>> log.debug("Fetching MachineList ... begin transaction;");
>>> Session session = dataStore.getSessionFactory().openSession();
>>> session.beginTransaction();
>>> try {
>>> Query query = session.createQuery("FROM MachineList");
>>> List list = query.list();
>>> if(list.size() > 0) {
>>> machines = (MachineList)list.get(0);
>>> HibernatePersistableEList elist =
>>> (HibernatePersistableEList)machines.getMachines();
>>> if(!elist.isLoaded()) {
>>> log.debug("Loading peristable elist;");
>>> machines.getMachines().size();
>>> }
>>> } else {
>>> machines = ModelFactory.INSTANCE.createMachineList();
>>> session.saveOrUpdate(machines);
>>> log.debug("No machines in database ... bootstrapping;");
>>> session.update(machines);
>>> }
>>> session.getTransaction().commit();
>>> firePropertyChange("initialized", false, true);
>>> } catch (Exception e) {
>>> session.getTransaction().rollback();
>>> log.error("Unable to initalize MachineList;", e);
>>> } finally { session.close();
>>> }
>>> }
>>> private Properties loadHbProperties() {
>>> Properties properties = new Properties();
>>> URL url =
>>> Activator.getDefault().getBundle().getEntry("hibernate.properties ");
>>> try {
>>> properties.load(url.openStream());
>>> } catch (IOException ioex) {
>>> log.warn("Unable to load hibernate poperties;", ioex);
>>> }
>>> return properties;
>>> }
>>> public MachineList getMachines() {
>>> return machines;
>>> }
>>> public boolean addMachine(Machine machine) {
>>> boolean ret = true;
>>> Session session =
>>> dataStore.getSessionFactory().openSession();
>>> session.beginTransaction();
>>> try {
>>> if (machines != null && machine != null) {
>>> session.update(machines);
>>> machines.getMachines().add(machine);
>>> }
>>> session.getTransaction().commit();
>>> } catch (Exception e) {
>>> log.error("Unable to save machine list;", e);
>>> session.getTransaction().rollback();
>>> } finally { session.close();
>>> }
>>> return ret;
>>> }
>>> public List getTasks(Machine machine) {
>>> return new TaskListProxy().loadTasks(machine);
>>> }
>>> }
>>
>>
>>
>> ------------------------------------------------------------ ------------
>>
>> # Set root logger level to error and its only appender to A1.
>> log4j.rootCategory=error, A1
>>
>> # A1 is set to be a ConsoleAppender.
>> log4j.appender.A1=org.apache.log4j.ConsoleAppender
>>
>> # A1 uses PatternLayout.
>> log4j.appender.A1.layout=org.apache.log4j.PatternLayout
>> log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
>>
>> #log4j.logger.org.hibernate=error
>> log4j.logger.org.hibernate=error
>> #org.hibernate.pretty
>>
>> log4j.logger.org.hibernate.tool.hbm2ddl=error
>>
>> ### log HQL query parser activity
>> log4j.logger.org.hibernate.hql.ast.AST=error
>>
>> ### log just the SQL
>> log4j.logger.org.hibernate.SQL=error
>>
>> ### log JDBC bind parameters ###
>> log4j.logger.org.hibernate.type=error
>> #log4j.logger.org.hibernate.type=error
>>
>> ### log schema export/update ###
>> log4j.logger.org.hibernate.tool.hbm2ddl=error
>>
>> ### log HQL parse trees
>> log4j.logger.org.hibernate.hql=error
>>
>> ### log cache activity ###
>> log4j.logger.org.hibernate.cache=error
>>
>> ### log transaction activity
>> log4j.logger.org.hibernate.transaction=error
>>
>> ### log JDBC resource acquisition
>> log4j.logger.org.hibernate.jdbc=error
>>
>> ### enable the following line if you want to track down connection ###
>> ### leakages when using DriverManagerConnectionProvider ###
>> log4j.logger.org.hibernate.connection.DriverManagerConnectio nProvider=error
>>
>
>
> ------------------------------------------------------------ ------------
>
> 0 [main] INFO org.eclipse.emf.teneo.hibernate.HbHelper - Creating emf data store and registering it under name: ModelDataStore
> 500 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore - Initializing protocol/extension for hibernate
> 515 [main] INFO org.eclipse.emf.teneo.hibernate.HbHelper - Returning created emf data store, initialize this newly created data store!
> 844 [main] DEBUG com.lessmann.capa.model.util.ModelMediator - Loading properties;
> 844 [main] DEBUG com.lessmann.capa.model.util.ModelMediator - Initialize dataStore;
> 844 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore - >>>>> Creating HB Configuration
> log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
> log4j:WARN Please initialize the log4j system properly.
> 1328 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore - Generating mapping file from in-mem ecore
> log4j:WARN No appenders could be found for logger (org.eclipse.emf.teneo.mapper.PersistenceMappingBuilderImpl) .
> log4j:WARN Please initialize the log4j system properly.
> 1812 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.HibernateMappingGener ator - Geneting Hibernate mapping for org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl @132b67c
> 1812 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Mapping Entity EClass/CapacityEntry
> 1812 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - No of mappedSuperclasses 0
> 1812 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Creating entity tag class
> 1812 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - DValue CapacityEntry
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Table `capacityentry`
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Processing mapped superclasses, no of mappedsuperclasses: 0
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - processBasic capacityEntryId
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - addProperty capacityEntryId of type java.lang.String
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - processBasic name
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - addProperty name of type java.lang.String
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Mapping Entity EClass/Machine
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - No of mappedSuperclasses 0
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Creating entity tag class
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - DValue Machine
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Table `machine`
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Processing mapped superclasses, no of mappedsuperclasses: 0
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Generating many to one unidirectional mapping for EReference/workWeek
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Process many-to-one EReference/workWeek
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Target WorkWeek
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper - addManyToOne workWeek/WorkWeek
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper - addJoinColumns many-to-one/ no of joincolumns1
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper - JoinColumn workweek_id
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - Skipping transient feature for tasks
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - processBasic capacitySearchString
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - addProperty capacitySearchString of type java.lang.String
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - processBasic machineId
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - addProperty machineId of type java.lang.String
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - processBasic machineSearchString
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - addProperty machineSearchString of type java.lang.String
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - processBasic multiplicity
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - addProperty multiplicity of type int
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - processBasic taskSearchString
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - addProperty taskSearchString of type java.lang.String
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Mapping Entity EClass/MachineList
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - No of mappedSuperclasses 0
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Creating entity tag class
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - DValue MachineList
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Table `machinelist`
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Processing mapped superclasses, no of mappedsuperclasses: 0
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.OneToManyMapper - Generating one to many unidirectional mapping for EReference/machines
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper - Adding key columns
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper - Column machines_id
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper - Add list index MACHINELIST_MACHINES_IDX to machines
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Mapping Entity EClass/Production
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - No of mappedSuperclasses 0
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Creating entity tag class
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - DValue Production
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Table `production`
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Processing mapped superclasses, no of mappedsuperclasses: 0
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - processBasic article
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - addProperty article of type java.lang.String
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - processBasic dueTime
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - addProperty dueTime of type serializable
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - processBasic missingAmount
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - addProperty missingAmount of type float
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - processBasic productionId
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - addProperty productionId of type java.lang.String
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - processBasic startTime
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - addProperty startTime of type serializable
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - processBasic totalAmount
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - addProperty totalAmount of type float
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Mapping Entity EClass/Task
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - No of mappedSuperclasses 0
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Creating entity tag class
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - DValue Task
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Table `task`
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Processing mapped superclasses, no of mappedsuperclasses: 0
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Generating many to one unidirectional mapping for EReference/capacityEntry
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Process many-to-one EReference/capacityEntry
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Target CapacityEntry
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper - addManyToOne capacityEntry/CapacityEntry
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper - addJoinColumns many-to-one/ no of joincolumns1
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper - JoinColumn capacityentry_id
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Generating many to one unidirectional mapping for EReference/production
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Process many-to-one EReference/production
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Target Production
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper - addManyToOne production/Production
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper - addJoinColumns many-to-one/ no of joincolumns1
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper - JoinColumn production_id
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - processBasic name
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - addProperty name of type java.lang.String
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - processBasic taskId
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - addProperty taskId of type java.lang.String
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - processBasic timePerPice
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - addProperty timePerPice of type float
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - processBasic timePerPreperation
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - addProperty timePerPreperation of type float
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Mapping Entity EClass/WorkDay
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - No of mappedSuperclasses 0
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Creating entity tag class
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - DValue WorkDay
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Table `workday`
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Processing mapped superclasses, no of mappedsuperclasses: 0
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - processBasic dayOfWeek
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - addProperty dayOfWeek of type int
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - processBasic duration
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - addProperty duration of type int
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - processBasic startTime
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - addProperty startTime of type int
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Mapping Entity EClass/WorkWeek
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - No of mappedSuperclasses 0
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Creating entity tag class
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - DValue WorkWeek
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Table `workweek`
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Processing mapped superclasses, no of mappedsuperclasses: 0
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.OneToManyMapper - Generating one to many unidirectional mapping for EReference/days
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper - Adding key columns
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper - Column days_id
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper - Add list index WORKWEEK_DAYS_IDX to days
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - processBasic workWeekId
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - addProperty workWeekId of type java.lang.String
> 2812 [main] WARN org.eclipse.emf.teneo.hibernate.HbDataStore - No hibernate cache provider set, using org.hibernate.cache.HashtableCacheProvider
> 2812 [main] WARN org.eclipse.emf.teneo.hibernate.HbDataStore - For production use please set the ehcache (or other) provider explicitly and configure it
> 2812 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore - Setting properties in Hibernate Configuration:
> 2812 [main] INFO org.eclipse.emf.teneo.hibernate.HbDataStore - hibernate.connection.username: pg_pp01
> 2812 [main] INFO org.eclipse.emf.teneo.hibernate.HbDataStore - hibernate.default_schema: public
> 2812 [main] INFO org.eclipse.emf.teneo.hibernate.HbDataStore - hibernate.connection.password: postgress
> 2812 [main] INFO org.eclipse.emf.teneo.hibernate.HbDataStore - hibernate.cache.provider_class: org.hibernate.cache.HashtableCacheProvider
> 2812 [main] INFO org.eclipse.emf.teneo.hibernate.HbDataStore - hibernate.dialect: org.hibernate.dialect.PostgreSQLDialect
> 2812 [main] INFO org.eclipse.emf.teneo.hibernate.HbDataStore - hibernate.connection.url: jdbc:postgresql://localhost:5432/MXDBS
> 2812 [main] INFO org.eclipse.emf.teneo.hibernate.HbDataStore - hibernate.connection.driver_class: org.postgresql.Driver
> 2812 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore - Determine referers for each class
> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore - Adding container mapping for WorkWeek
> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore - Adding eContainer and econtainerfeatureid properties to null
> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore - Adding container mapping for WorkDay
> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore - Adding eContainer and econtainerfeatureid properties to null
> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore - Adding container mapping for Production
> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore - Adding eContainer and econtainerfeatureid properties to null
> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore - Adding container mapping for Machine
> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore - Adding eContainer and econtainerfeatureid properties to null
> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore - Adding container mapping for CapacityEntry
> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore - Adding eContainer and econtainerfeatureid properties to null
> 2844 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore - Starting update of schema
> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore - >>> Update of schema finished
> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore - Registering datastore with persistent classes
> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbHelper - Datastore: ModelDataStore registered for pc: WorkWeek
> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbHelper - Datastore: ModelDataStore registered for pc: WorkDay
> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbHelper - Datastore: ModelDataStore registered for pc: Task
> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbHelper - Datastore: ModelDataStore registered for pc: Production
> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbHelper - Datastore: ModelDataStore registered for pc: MachineList
> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbHelper - Datastore: ModelDataStore registered for pc: Machine
> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbHelper - Datastore: ModelDataStore registered for pc: CapacityEntry
> 4328 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for days/WorkWeek/days
> 4328 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler - Created getter/setter for WorkWeek/days
> 4328 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for days/WorkWeek/days
> 4328 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler - Created getter/setter for WorkWeek/days
> 4328 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for workWeekId/WorkWeek/workWeekId
> 4328 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for WorkWeek/workWeekId
> 4328 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for workWeekId/WorkWeek/workWeekId
> 4328 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for WorkWeek/workWeekId
> 4328 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler - Created eContainer property handler
> 4328 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler - Created eContainer property handler
> 4344 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler - Created eContainerFeatureID handler
> 4344 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler - Created eContainerFeatureID handler
> 4344 [main] DEBUG org.eclipse.emf.teneo.hibernate.tuplizer.EMFInstantiator - Creating eobject instantiator for WorkWeek and eclass WorkWeek
> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for dayOfWeek/WorkDay/dayOfWeek
> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for WorkDay/dayOfWeek
> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for dayOfWeek/WorkDay/dayOfWeek
> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for WorkDay/dayOfWeek
> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for duration/WorkDay/duration
> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for WorkDay/duration
> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for duration/WorkDay/duration
> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for WorkDay/duration
> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for startTime/WorkDay/startTime
> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for WorkDay/startTime
> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for startTime/WorkDay/startTime
> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for WorkDay/startTime
> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler - Created eContainer property handler
> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler - Created eContainer property handler
> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler - Created eContainerFeatureID handler
> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler - Created eContainerFeatureID handler
> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.tuplizer.EMFInstantiator - Creating eobject instantiator for WorkDay and eclass WorkDay
> 4703 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for capacityEntry/Task/capacityEntry
> 4703 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EReferenceP ropertyHandler - Created getter/setter for Task/capacityEntry
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for capacityEntry/Task/capacityEntry
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EReferenceP ropertyHandler - Created getter/setter for Task/capacityEntry
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for production/Task/production
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EReferenceP ropertyHandler - Created getter/setter for Task/production
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for production/Task/production
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EReferenceP ropertyHandler - Created getter/setter for Task/production
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for name/Task/name
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Task/name
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for name/Task/name
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Task/name
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for taskId/Task/taskId
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Task/taskId
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for taskId/Task/taskId
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Task/taskId
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for timePerPice/Task/timePerPice
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Task/timePerPice
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for timePerPice/Task/timePerPice
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Task/timePerPice
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for timePerPreperation/Task/timePerPreperation
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Task/timePerPreperation
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for timePerPreperation/Task/timePerPreperation
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Task/timePerPreperation
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.tuplizer.EMFInstantiator - Creating eobject instantiator for Task and eclass Task
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for article/Production/article
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Production/article
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for article/Production/article
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Production/article
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for dueTime/Production/dueTime
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Production/dueTime
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for dueTime/Production/dueTime
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Production/dueTime
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for missingAmount/Production/missingAmount
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Production/missingAmount
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for missingAmount/Production/missingAmount
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Production/missingAmount
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for productionId/Production/productionId
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Production/productionId
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for productionId/Production/productionId
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Production/productionId
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for startTime/Production/startTime
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Production/startTime
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for startTime/Production/startTime
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Production/startTime
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for totalAmount/Production/totalAmount
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Production/totalAmount
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for totalAmount/Production/totalAmount
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Production/totalAmount
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler - Created eContainer property handler
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler - Created eContainer property handler
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler - Created eContainerFeatureID handler
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler - Created eContainerFeatureID handler
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.tuplizer.EMFInstantiator - Creating eobject instantiator for Production and eclass Production
> 4859 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for machines/MachineList/machines
> 4859 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler - Created getter/setter for MachineList/machines
> 4859 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for machines/MachineList/machines
> 4859 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler - Created getter/setter for MachineList/machines
> 4859 [main] DEBUG org.eclipse.emf.teneo.hibernate.tuplizer.EMFInstantiator - Creating eobject instantiator for MachineList and eclass MachineList
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for workWeek/Machine/workWeek
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EReferenceP ropertyHandler - Created getter/setter for Machine/workWeek
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for workWeek/Machine/workWeek
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EReferenceP ropertyHandler - Created getter/setter for Machine/workWeek
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for capacitySearchString/Machine/capacitySearchString
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Machine/capacitySearchString
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for capacitySearchString/Machine/capacitySearchString
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Machine/capacitySearchString
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for machineId/Machine/machineId
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Machine/machineId
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for machineId/Machine/machineId
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Machine/machineId
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for machineSearchString/Machine/machineSearchString
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Machine/machineSearchString
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for machineSearchString/Machine/machineSearchString
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Machine/machineSearchString
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for multiplicity/Machine/multiplicity
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Machine/multiplicity
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for multiplicity/Machine/multiplicity
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Machine/multiplicity
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for taskSearchString/Machine/taskSearchString
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Machine/taskSearchString
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for taskSearchString/Machine/taskSearchString
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Machine/taskSearchString
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler - Created eContainer property handler
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler - Created eContainer property handler
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler - Created eContainerFeatureID handler
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler - Created eContainerFeatureID handler
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.tuplizer.EMFInstantiator - Creating eobject instantiator for Machine and eclass Machine
> 5015 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for capacityEntryId/CapacityEntry/capacityEntryId
> 5015 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for CapacityEntry/capacityEntryId
> 5015 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for capacityEntryId/CapacityEntry/capacityEntryId
> 5015 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for CapacityEntry/capacityEntryId
> 5015 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for name/CapacityEntry/name
> 5015 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for CapacityEntry/name
> 5015 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for name/CapacityEntry/name
> 5015 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for CapacityEntry/name
> 5015 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler - Created eContainer property handler
> 5015 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler - Created eContainer property handler
> 5015 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler - Created eContainerFeatureID handler
> 5015 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler - Created eContainerFeatureID handler
> 5015 [main] DEBUG org.eclipse.emf.teneo.hibernate.tuplizer.EMFInstantiator - Creating eobject instantiator for CapacityEntry and eclass CapacityEntry
> 5203 [main] DEBUG com.lessmann.capa.model.util.ModelMediator - Fetching MachineList ... begin transaction;
> 5625 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting id: 1 for object com.lessmann.capa.model.impl.MachineListImpl in idcache
> 5640 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting version: 1 for object com.lessmann.capa.model.impl.MachineListImpl in idcache
> 5672 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler - Set value org.hibernate.collection.PersistentList for target com.lessmann.capa.model.impl.MachineListImpl field machines
> 5687 [main] DEBUG com.lessmann.capa.model.util.ModelMediator - Loading peristable elist;
> 5687 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList - Started loading elist EList of type: org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList of member machines owned by com.lessmann.capa.model.impl.MachineListImpl with delegate list org.hibernate.collection.PersistentList
> 5687 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList - EList is not loaded in session context
> 5687 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting id: 3 for object com.lessmann.capa.model.impl.WorkWeekImpl in idcache
> 5703 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting id: 2 for object com.lessmann.capa.model.impl.MachineImpl in idcache
> 5703 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting version: 1 for object com.lessmann.capa.model.impl.MachineImpl in idcache
> 5719 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting version: 1 for object com.lessmann.capa.model.impl.WorkWeekImpl in idcache
> 5719 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler - Set value org.hibernate.collection.PersistentList for target com.lessmann.capa.model.impl.WorkWeekImpl field days
> 5719 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList - Loaded 1 from backend store for EList of type: org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList of member machines owned by com.lessmann.capa.model.impl.MachineListImpl with delegate list org.hibernate.collection.PersistentList
> 5719 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList - Finished loading elist EList of type: org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList of member machines owned by com.lessmann.capa.model.impl.MachineListImpl with delegate list org.hibernate.collection.PersistentList
> 11984 [main] DEBUG com.lessmann.capa.actions.NewMachineAction - run ...
> 60125 [main] DEBUG com.lessmann.capa.wizards.NewMachineWizard - Perform finish for com.lessmann.capa.model.impl.MachineImpl@196a753 (capacitySearchString: <unset>, machineId: m2, machineSearchString: <unset>, multiplicity: <unset>, taskSearchString: <unset>)
> 71562 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting id: 22 for object com.lessmann.capa.model.impl.MachineImpl in idcache
> 71562 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting id: 23 for object com.lessmann.capa.model.impl.WorkWeekImpl in idcache
> 252500 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting id: 24 for object com.lessmann.capa.model.impl.MachineImpl in idcache
> 252515 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting id: 25 for object com.lessmann.capa.model.impl.WorkWeekImpl in idcache
> 252515 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting version: 0 for object com.lessmann.capa.model.impl.WorkWeekImpl in idcache
> 252515 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler - Set value java.util.ArrayList for target com.lessmann.capa.model.impl.WorkWeekImpl field days
> 252515 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting id: 26 for object com.lessmann.capa.model.impl.WorkDayImpl in idcache
> 252531 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting version: 0 for object com.lessmann.capa.model.impl.WorkDayImpl in idcache
> 252531 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting id: 27 for object com.lessmann.capa.model.impl.WorkDayImpl in idcache
> 252531 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting version: 0 for object com.lessmann.capa.model.impl.WorkDayImpl in idcache
> 252531 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting id: 28 for object com.lessmann.capa.model.impl.WorkDayImpl in idcache
> 252531 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting version: 0 for object com.lessmann.capa.model.impl.WorkDayImpl in idcache
> 252531 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting id: 29 for object com.lessmann.capa.model.impl.WorkDayImpl in idcache
> 252531 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting version: 0 for object com.lessmann.capa.model.impl.WorkDayImpl in idcache
> 252547 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting id: 30 for object com.lessmann.capa.model.impl.WorkDayImpl in idcache
> 252547 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting version: 0 for object com.lessmann.capa.model.impl.WorkDayImpl in idcache
> 252547 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting id: 31 for object com.lessmann.capa.model.impl.WorkDayImpl in idcache
> 252547 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting version: 0 for object com.lessmann.capa.model.impl.WorkDayImpl in idcache
> 252547 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting id: 32 for object com.lessmann.capa.model.impl.WorkDayImpl in idcache
> 252547 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting version: 0 for object com.lessmann.capa.model.impl.WorkDayImpl in idcache
> 252547 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting version: 0 for object com.lessmann.capa.model.impl.MachineImpl in idcache
> 261844 [main] ERROR com.lessmann.capa.model.util.ModelMediator - Unable to save machine list;
> org.hibernate.HibernateException: Don't change the reference to a collection with cascade="all-delete-orphan": WorkWeek.days
> at org.hibernate.engine.Collections.prepareCollectionForUpdate( Collections.java:226)
> at org.hibernate.engine.Collections.processReachableCollection( Collections.java:185)
> at org.hibernate.event.def.FlushVisitor.processCollection(Flush Visitor.java:37)
> at org.hibernate.event.def.AbstractVisitor.processValue(Abstrac tVisitor.java:101)
> at org.hibernate.event.def.AbstractVisitor.processValue(Abstrac tVisitor.java:61)
> at org.hibernate.event.def.AbstractVisitor.processEntityPropert yValues(AbstractVisitor.java:55)
> at org.hibernate.event.def.DefaultFlushEntityEventListener.onFl ushEntity(DefaultFlushEntityEventListener.java:131)
> at org.hibernate.event.def.AbstractFlushingEventListener.flushE ntities(AbstractFlushingEventListener.java:195)
> at org.hibernate.event.def.AbstractFlushingEventListener.flushE verythingToExecutions(AbstractFlushingEventListener.java:76)
> at org.hibernate.event.def.DefaultFlushEventListener.onFlush(De faultFlushEventListener.java:26)
> at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
> at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java :338)
> at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransac tion.java:106)
> at com.lessmann.capa.model.util.ModelMediator.addMachine(ModelM ediator.java:191)
> at com.lessmann.capa.wizards.NewMachineWizard.performFinish(New MachineWizard.java:62)
> at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi alog.java:680)
> at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:355)
> at org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.jav a:660)
Re: Plugin Dependencies [message #43693 is a reply to message #43366] Mon, 07 August 2006 11:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rosskopf.progroup-inc.com

Hello Martin,

of course you can use my model.
I now solved the problem btw. I found a workaround.
After my initialization query I closed the session, and reopend for each
addMachine call. And that caused the error.

But as far as I understand a Hibernate Session isn´t made for a long
term use during the application lifecycle.

What do you think.
Nice holidays
---
Joachim

Martin Taal wrote:
> Hi Joachim,
> I did my best to reproduce this issue and the I accomplished this by
> reusing the elist instance
> stored in a WorkWeek days member in another WorkWeek (this is not
> allowed). Is this something you
> are doing?
>
> Another question I had is if it is okay if I add your model as a
> testcase to Teneo?
>
> Btw, I am on holiday so I don't check my email on a daily basis. So it
> can take a few days before I
> can react.
>
> gr. Martin
>
> Joachim Rosskopf wrote:
>> Hello Martin,
>>
>> addMachine doesn´t work! The call session.getTransaction().commit();
>> Throws a HibernateException.
>>
>> Attached you get the log of the complete session, with exactly one
>> machine in the list.
>>
>> Thank you in advance.
>> Regards
>> ---
>> Joachim
>>
>> Martin Taal wrote:
>>> Hi Joachim,
>>> You mean the addMachine doesn't work? When you debug through it does
>>> it run correctly through this method? But the machine does not get
>>> added in the db?
>>>
>>> Can you post the log? If you stop just after the commit in addMachine
>>> then that would be best probably.
>>>
>>> I have attached a log4j.properties which you can use, change every
>>> word error in debug and you would get the most info.
>>>
>>> gr. Martin
>>>
>>> Joachim Rosskopf wrote:
>>>> Hello Martin,
>>>>
>>>> would you like to help me another time.
>>>> I can´t find my mistake. Put it´s probably my mediator code.
>>>> I´ll attach it, and if you have some minutes it would be very nice
>>>> if you have an eye on it.
>>>>
>>>> Thank you in advance!
>>>> Regards
>>>> ---
>>>> Joachim
>>>>
>>>> Martin Taal wrote:
>>>>> Hi Joachim,
>>>>> I tested it and it works fine for me (get 2 machines in the db).
>>>>> Just need to ask but is this if statement correct:
>>>>> if (machine != null)
>>>>>
>>>>> is this true? or should it be:
>>>>> if (machines != null)
>>>>>
>>>>> gr. Martin
>>>>>
>>>>> Joachim Rosskopf wrote:
>>>>
>>>> ------------------------------------------------------------ ------------
>>>>
>>>>
>>>> package com.lessmann.capa.model.util;
>>>>
>>>> import org.apache.commons.logging.Log;
>>>> import org.apache.commons.logging.LogFactory;
>>>> import org.eclipse.emf.ecore.EPackage;
>>>> import org.eclipse.emf.teneo.hibernate.HbDataStore;
>>>> import org.eclipse.emf.teneo.hibernate.HbHelper;
>>>> import
>>>> org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList;
>>>>
>>>> import org.hibernate.Query;
>>>> import org.hibernate.Session;
>>>> import org.hibernate.SessionFactory;
>>>>
>>>> import java.io.IOException;
>>>> import java.net.URL;
>>>> import java.sql.PreparedStatement;
>>>> import java.sql.ResultSet;
>>>> import java.sql.SQLException;
>>>> import java.util.ArrayList;
>>>> import java.util.List;
>>>> import java.util.Properties;
>>>>
>>>> import com.lessmann.capa.model.Activator;
>>>> import com.lessmann.capa.model.CapacityEntry;
>>>> import com.lessmann.capa.model.Machine;
>>>> import com.lessmann.capa.model.MachineList;
>>>> import com.lessmann.capa.model.ModelFactory;
>>>> import com.lessmann.capa.model.Production;
>>>> import com.lessmann.capa.model.Task;
>>>> import com.lessmann.capa.model.WorkWeek;
>>>> import com.lessmann.capa.model.impl.ModelPackageImpl;
>>>> import com.toolsforjobs.util.misc.PropertyObservableBase;
>>>>
>>>> public class ModelMediator extends PropertyObservableBase {
>>>> public static final ModelMediator INSTANCE = new ModelMediator();
>>>> private static Log log =
>>>> LogFactory.getLog(ModelMediator.class);
>>>> protected HbDataStore dataStore;
>>>> protected MachineList machines;
>>>> private ModelMediator() {
>>>> dataStore =
>>>> HbHelper.INSTANCE.createRegisterDataStore("ModelDataStore");
>>>> dataStore.setEPackages(new EPackage[]
>>>> {ModelPackageImpl.eINSTANCE});
>>>> }
>>>> private class TaskListProxy {
>>>> PreparedStatement stmt;
>>>> TaskListProxy() {
>>>> StringBuilder query = new StringBuilder();
>>>> query.append("SELECT DISTINCT aprp.pos,
>>>> aprp.prnr, aprk.art, res.rsnr, res.bez1 as res_bez, res.wznr,
>>>> res.ts, ");
>>>> query.append("res.tr, res.rnr, ress.bez1 as ress_bez,
>>>> aprp.ianz, aprp.anz, aprk.ldat, aprk.dat ");
>>>> query.append("FROM res, ress, aprp, aprk WHERE ");
>>>> query.append("res.wznr LIKE ? AND ");
>>>> query.append("res.bez1 LIKE ? AND ");
>>>> query.append("res.ts > 0.0 AND ");
>>>> query.append("ress.rsnr = res.rnr AND ");
>>>> query.append("aprp.ianz > 0.0 AND ");
>>>> query.append("aprp.snr_res = res.rsnr AND
>>>> "); query.append("aprk.prnr = aprp.prnr AND
>>>> "); query.append("aprk.erl != 1 ");
>>>> query.append("ORDER BY res.wznr; ");
>>>> Session session =
>>>> dataStore.getSessionFactory().openSession();
>>>> try {
>>>> stmt =
>>>> session.connection().prepareStatement(query.toString());
>>>> } catch (SQLException sqlex) {
>>>> log.error("Unable to build statement for task list
>>>> query;", sqlex);
>>>> } finally {
>>>> session.close();
>>>> }
>>>> }
>>>> List loadTasks(Machine machine) {
>>>> if (stmt != null && machine != null) {
>>>> try {
>>>> List tasks = new ArrayList();
>>>> String machiness =
>>>> machine.getMachineSearchString().replace('*', '%');
>>>> String taskss =
>>>> machine.getTaskSearchString().replace('*', '%');
>>>> stmt.setString(1, machiness);
>>>> stmt.setString(2, taskss);
>>>> ResultSet resultset =
>>>> stmt.executeQuery();
>>>> while (resultset.next()) {
>>>> Task task = ModelFactory.INSTANCE.createTask();
>>>> task.setTaskId(resultset.getString("rsnr"));
>>>> task.setName(resultset.getString("res_bez"));
>>>> task.setTimePerPice(resultset.getFloat("ts"));
>>>>
>>>> task.setTimePerPreperation(resultset.getFloat("tr"));
>>>> CapacityEntry cpentry
>>>> = ModelFactory.INSTANCE.createCapacityEntry();
>>>>
>>>> cpentry.setCapacityEntryId(resultset.getString("rnr"));
>>>>
>>>> cpentry.setName(resultset.getString("ress_bez"));
>>>> task.setCapacityEntry(cpentry);
>>>> Production production
>>>> = ModelFactory.INSTANCE.createProduction();
>>>>
>>>> production.setProductionId(resultset.getString("prnr"));
>>>>
>>>> production.setArticle(resultset.getString("art"));
>>>> // TODO add parsing of the date here
>>>> production.setStartTime(null);
>>>> production.setDueTime(null);
>>>>
>>>> production.setTotalAmount(resultset.getFloat("anz"));
>>>>
>>>> production.setMissingAmount(resultset.getFloat("ianz"));
>>>> task.setProduction(production);
>>>> tasks.add(task);
>>>> }
>>>> resultset.close();
>>>> stmt.close();
>>>>
>>>> firePropertyChange("taskListLoaded", false, true);
>>>> return tasks;
>>>> } catch (SQLException sqlex) {
>>>> log.error("Unable to set arguments in statement
>>>> for task list query;", sqlex);
>>>> }
>>>> }
>>>> return new ArrayList<Task>();
>>>> }
>>>> }
>>>> public void initialize() {
>>>> if (Activator.getDefault() != null) {
>>>> log.debug("Loading properties;");
>>>> dataStore.setHibernateProperties(loadHbProperties());
>>>> }
>>>> log.debug("Initialize dataStore;");
>>>> dataStore.initialize();
>>>> log.debug("Fetching MachineList ... begin
>>>> transaction;");
>>>> Session session = dataStore.getSessionFactory().openSession();
>>>> session.beginTransaction();
>>>> try {
>>>> Query query = session.createQuery("FROM MachineList");
>>>> List list = query.list();
>>>> if(list.size() > 0) {
>>>> machines = (MachineList)list.get(0);
>>>> HibernatePersistableEList elist =
>>>> (HibernatePersistableEList)machines.getMachines();
>>>> if(!elist.isLoaded()) {
>>>> log.debug("Loading peristable elist;");
>>>> machines.getMachines().size();
>>>> }
>>>> } else {
>>>> machines = ModelFactory.INSTANCE.createMachineList();
>>>> session.saveOrUpdate(machines);
>>>> log.debug("No machines in database ...
>>>> bootstrapping;");
>>>> session.update(machines);
>>>> }
>>>> session.getTransaction().commit();
>>>> firePropertyChange("initialized", false, true);
>>>> } catch (Exception e) {
>>>> session.getTransaction().rollback();
>>>> log.error("Unable to initalize MachineList;", e);
>>>> } finally { session.close();
>>>> }
>>>> }
>>>> private Properties loadHbProperties() {
>>>> Properties properties = new Properties();
>>>> URL url =
>>>> Activator.getDefault().getBundle().getEntry("hibernate.properties ");
>>>> try {
>>>> properties.load(url.openStream());
>>>> } catch (IOException ioex) {
>>>> log.warn("Unable to load hibernate poperties;", ioex);
>>>> }
>>>> return properties;
>>>> }
>>>> public MachineList getMachines() {
>>>> return machines;
>>>> }
>>>> public boolean addMachine(Machine machine) {
>>>> boolean ret = true;
>>>> Session session =
>>>> dataStore.getSessionFactory().openSession();
>>>> session.beginTransaction();
>>>> try {
>>>> if (machines != null && machine != null) {
>>>> session.update(machines);
>>>> machines.getMachines().add(machine);
>>>> }
>>>> session.getTransaction().commit();
>>>> } catch (Exception e) {
>>>> log.error("Unable to save machine list;", e);
>>>> session.getTransaction().rollback();
>>>> } finally { session.close();
>>>> }
>>>> return ret;
>>>> }
>>>> public List getTasks(Machine machine) {
>>>> return new TaskListProxy().loadTasks(machine);
>>>> }
>>>> }
>>>
>>>
>>>
>>> ------------------------------------------------------------ ------------
>>>
>>> # Set root logger level to error and its only appender to A1.
>>> log4j.rootCategory=error, A1
>>>
>>> # A1 is set to be a ConsoleAppender.
>>> log4j.appender.A1=org.apache.log4j.ConsoleAppender
>>>
>>> # A1 uses PatternLayout.
>>> log4j.appender.A1.layout=org.apache.log4j.PatternLayout
>>> log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
>>>
>>> #log4j.logger.org.hibernate=error
>>> log4j.logger.org.hibernate=error
>>> #org.hibernate.pretty
>>>
>>> log4j.logger.org.hibernate.tool.hbm2ddl=error
>>>
>>> ### log HQL query parser activity
>>> log4j.logger.org.hibernate.hql.ast.AST=error
>>>
>>> ### log just the SQL
>>> log4j.logger.org.hibernate.SQL=error
>>>
>>> ### log JDBC bind parameters ###
>>> log4j.logger.org.hibernate.type=error
>>> #log4j.logger.org.hibernate.type=error
>>>
>>> ### log schema export/update ###
>>> log4j.logger.org.hibernate.tool.hbm2ddl=error
>>>
>>> ### log HQL parse trees
>>> log4j.logger.org.hibernate.hql=error
>>>
>>> ### log cache activity ###
>>> log4j.logger.org.hibernate.cache=error
>>>
>>> ### log transaction activity
>>> log4j.logger.org.hibernate.transaction=error
>>>
>>> ### log JDBC resource acquisition
>>> log4j.logger.org.hibernate.jdbc=error
>>>
>>> ### enable the following line if you want to track down connection ###
>>> ### leakages when using DriverManagerConnectionProvider ###
>>> log4j.logger.org.hibernate.connection.DriverManagerConnectio nProvider=error
>>>
>>
>>
>> ------------------------------------------------------------ ------------
>>
>> 0 [main] INFO org.eclipse.emf.teneo.hibernate.HbHelper - Creating
>> emf data store and registering it under name: ModelDataStore
>> 500 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>> Initializing protocol/extension for hibernate
>> 515 [main] INFO org.eclipse.emf.teneo.hibernate.HbHelper -
>> Returning created emf data store, initialize this newly created data
>> store!
>> 844 [main] DEBUG com.lessmann.capa.model.util.ModelMediator -
>> Loading properties;
>> 844 [main] DEBUG com.lessmann.capa.model.util.ModelMediator -
>> Initialize dataStore;
>> 844 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore - >>>>>
>> Creating HB Configuration
>> log4j:WARN No appenders could be found for logger
>> (org.hibernate.cfg.Environment).
>> log4j:WARN Please initialize the log4j system properly.
>> 1328 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>> Generating mapping file from in-mem ecore
>> log4j:WARN No appenders could be found for logger
>> (org.eclipse.emf.teneo.mapper.PersistenceMappingBuilderImpl) .
>> log4j:WARN Please initialize the log4j system properly.
>> 1812 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.HibernateMappingGener ator -
>> Geneting Hibernate mapping for
>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl @132b67c
>>
>> 1812 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Mapping Entity EClass/CapacityEntry
>> 1812 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - No of mappedSuperclasses 0
>> 1812 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Creating entity tag class
>> 1812 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - DValue CapacityEntry
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Table `capacityentry`
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Processing mapped superclasses, no of mappedsuperclasses: 0
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - processBasic capacityEntryId
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - addProperty capacityEntryId of type java.lang.String
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - processBasic name
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - addProperty name of type java.lang.String
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Mapping Entity EClass/Machine
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - No of mappedSuperclasses 0
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Creating entity tag class
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - DValue Machine
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Table `machine`
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Processing mapped superclasses, no of mappedsuperclasses: 0
>> 1828 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Generating
>> many to one unidirectional mapping for EReference/workWeek
>> 1828 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Process
>> many-to-one EReference/workWeek
>> 1828 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Target WorkWeek
>> 1828 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>> addManyToOne workWeek/WorkWeek
>> 1828 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>> addJoinColumns many-to-one/ no of joincolumns1
>> 1828 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>> JoinColumn workweek_id
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - Skipping transient feature for tasks
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - processBasic capacitySearchString
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - addProperty capacitySearchString of type java.lang.String
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - processBasic machineId
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - addProperty machineId of type java.lang.String
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - processBasic machineSearchString
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - addProperty machineSearchString of type java.lang.String
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - processBasic multiplicity
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - addProperty multiplicity of type int
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - processBasic taskSearchString
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - addProperty taskSearchString of type java.lang.String
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Mapping Entity EClass/MachineList
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - No of mappedSuperclasses 0
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Creating entity tag class
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - DValue MachineList
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Table `machinelist`
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Processing mapped superclasses, no of mappedsuperclasses: 0
>> 1828 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.OneToManyMapper - Generating
>> one to many unidirectional mapping for EReference/machines
>> 1828 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>> Adding key columns
>> 1828 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>> Column machines_id
>> 1828 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>> Add list index MACHINELIST_MACHINES_IDX to machines
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Mapping Entity EClass/Production
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - No of mappedSuperclasses 0
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Creating entity tag class
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - DValue Production
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Table `production`
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Processing mapped superclasses, no of mappedsuperclasses: 0
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - processBasic article
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - addProperty article of type java.lang.String
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - processBasic dueTime
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - addProperty dueTime of type serializable
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - processBasic missingAmount
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - addProperty missingAmount of type float
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - processBasic productionId
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - addProperty productionId of type java.lang.String
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - processBasic startTime
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - addProperty startTime of type serializable
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - processBasic totalAmount
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - addProperty totalAmount of type float
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Mapping Entity EClass/Task
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - No of mappedSuperclasses 0
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Creating entity tag class
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - DValue Task
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Table `task`
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Processing mapped superclasses, no of mappedsuperclasses: 0
>> 1844 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Generating
>> many to one unidirectional mapping for EReference/capacityEntry
>> 1844 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Process
>> many-to-one EReference/capacityEntry
>> 1844 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Target
>> CapacityEntry
>> 1844 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>> addManyToOne capacityEntry/CapacityEntry
>> 1844 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>> addJoinColumns many-to-one/ no of joincolumns1
>> 1844 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>> JoinColumn capacityentry_id
>> 1844 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Generating
>> many to one unidirectional mapping for EReference/production
>> 1844 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Process
>> many-to-one EReference/production
>> 1844 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Target
>> Production
>> 1844 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>> addManyToOne production/Production
>> 1844 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>> addJoinColumns many-to-one/ no of joincolumns1
>> 1844 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>> JoinColumn production_id
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - processBasic name
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - addProperty name of type java.lang.String
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - processBasic taskId
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - addProperty taskId of type java.lang.String
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - processBasic timePerPice
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - addProperty timePerPice of type float
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - processBasic timePerPreperation
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - addProperty timePerPreperation of type float
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Mapping Entity EClass/WorkDay
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - No of mappedSuperclasses 0
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Creating entity tag class
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - DValue WorkDay
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Table `workday`
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Processing mapped superclasses, no of mappedsuperclasses: 0
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - processBasic dayOfWeek
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - addProperty dayOfWeek of type int
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - processBasic duration
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - addProperty duration of type int
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - processBasic startTime
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - addProperty startTime of type int
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Mapping Entity EClass/WorkWeek
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - No of mappedSuperclasses 0
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Creating entity tag class
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - DValue WorkWeek
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Table `workweek`
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Processing mapped superclasses, no of mappedsuperclasses: 0
>> 1844 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.OneToManyMapper - Generating
>> one to many unidirectional mapping for EReference/days
>> 1844 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>> Adding key columns
>> 1844 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>> Column days_id
>> 1844 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>> Add list index WORKWEEK_DAYS_IDX to days
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - processBasic workWeekId
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - addProperty workWeekId of type java.lang.String
>> 2812 [main] WARN org.eclipse.emf.teneo.hibernate.HbDataStore - No
>> hibernate cache provider set, using
>> org.hibernate.cache.HashtableCacheProvider
>> 2812 [main] WARN org.eclipse.emf.teneo.hibernate.HbDataStore - For
>> production use please set the ehcache (or other) provider explicitly
>> and configure it
>> 2812 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>> Setting properties in Hibernate Configuration:
>> 2812 [main] INFO org.eclipse.emf.teneo.hibernate.HbDataStore -
>> hibernate.connection.username: pg_pp01
>> 2812 [main] INFO org.eclipse.emf.teneo.hibernate.HbDataStore -
>> hibernate.default_schema: public
>> 2812 [main] INFO org.eclipse.emf.teneo.hibernate.HbDataStore -
>> hibernate.connection.password: postgress
>> 2812 [main] INFO org.eclipse.emf.teneo.hibernate.HbDataStore -
>> hibernate.cache.provider_class:
>> org.hibernate.cache.HashtableCacheProvider
>> 2812 [main] INFO org.eclipse.emf.teneo.hibernate.HbDataStore -
>> hibernate.dialect: org.hibernate.dialect.PostgreSQLDialect
>> 2812 [main] INFO org.eclipse.emf.teneo.hibernate.HbDataStore -
>> hibernate.connection.url: jdbc:postgresql://localhost:5432/MXDBS
>> 2812 [main] INFO org.eclipse.emf.teneo.hibernate.HbDataStore -
>> hibernate.connection.driver_class: org.postgresql.Driver
>> 2812 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>> Determine referers for each class
>> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>> Adding container mapping for WorkWeek
>> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>> Adding eContainer and econtainerfeatureid properties to null
>> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>> Adding container mapping for WorkDay
>> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>> Adding eContainer and econtainerfeatureid properties to null
>> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>> Adding container mapping for Production
>> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>> Adding eContainer and econtainerfeatureid properties to null
>> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>> Adding container mapping for Machine
>> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>> Adding eContainer and econtainerfeatureid properties to null
>> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>> Adding container mapping for CapacityEntry
>> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>> Adding eContainer and econtainerfeatureid properties to null
>> 2844 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>> Starting update of schema
>> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore - >>>
>> Update of schema finished
>> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>> Registering datastore with persistent classes
>> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbHelper -
>> Datastore: ModelDataStore registered for pc: WorkWeek
>> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbHelper -
>> Datastore: ModelDataStore registered for pc: WorkDay
>> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbHelper -
>> Datastore: ModelDataStore registered for pc: Task
>> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbHelper -
>> Datastore: ModelDataStore registered for pc: Production
>> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbHelper -
>> Datastore: ModelDataStore registered for pc: MachineList
>> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbHelper -
>> Datastore: ModelDataStore registered for pc: Machine
>> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbHelper -
>> Datastore: ModelDataStore registered for pc: CapacityEntry
>> 4328 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for days/WorkWeek/days
>> 4328 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler
>> - Created getter/setter for WorkWeek/days
>> 4328 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for days/WorkWeek/days
>> 4328 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler
>> - Created getter/setter for WorkWeek/days
>> 4328 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for workWeekId/WorkWeek/workWeekId
>> 4328 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for WorkWeek/workWeekId
>> 4328 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for workWeekId/WorkWeek/workWeekId
>> 4328 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for WorkWeek/workWeekId
>> 4328 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler
>> - Created eContainer property handler
>> 4328 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler
>> - Created eContainer property handler
>> 4344 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler
>> - Created eContainerFeatureID handler
>> 4344 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler
>> - Created eContainerFeatureID handler
>> 4344 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.tuplizer.EMFInstantiator - Creating
>> eobject instantiator for WorkWeek and eclass WorkWeek
>> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for dayOfWeek/WorkDay/dayOfWeek
>> 4625 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for WorkDay/dayOfWeek
>> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for dayOfWeek/WorkDay/dayOfWeek
>> 4625 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for WorkDay/dayOfWeek
>> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for duration/WorkDay/duration
>> 4625 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for WorkDay/duration
>> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for duration/WorkDay/duration
>> 4625 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for WorkDay/duration
>> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for startTime/WorkDay/startTime
>> 4625 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for WorkDay/startTime
>> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for startTime/WorkDay/startTime
>> 4625 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for WorkDay/startTime
>> 4625 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler
>> - Created eContainer property handler
>> 4625 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler
>> - Created eContainer property handler
>> 4625 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler
>> - Created eContainerFeatureID handler
>> 4625 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler
>> - Created eContainerFeatureID handler
>> 4625 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.tuplizer.EMFInstantiator - Creating
>> eobject instantiator for WorkDay and eclass WorkDay
>> 4703 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for capacityEntry/Task/capacityEntry
>> 4703 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EReferenceP ropertyHandler
>> - Created getter/setter for Task/capacityEntry
>> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for capacityEntry/Task/capacityEntry
>> 4719 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EReferenceP ropertyHandler
>> - Created getter/setter for Task/capacityEntry
>> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for production/Task/production
>> 4719 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EReferenceP ropertyHandler
>> - Created getter/setter for Task/production
>> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for production/Task/production
>> 4719 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EReferenceP ropertyHandler
>> - Created getter/setter for Task/production
>> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for name/Task/name
>> 4719 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Task/name
>> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for name/Task/name
>> 4719 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Task/name
>> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for taskId/Task/taskId
>> 4719 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Task/taskId
>> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for taskId/Task/taskId
>> 4719 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Task/taskId
>> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for timePerPice/Task/timePerPice
>> 4719 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Task/timePerPice
>> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for timePerPice/Task/timePerPice
>> 4719 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Task/timePerPice
>> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for timePerPreperation/Task/timePerPreperation
>> 4719 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Task/timePerPreperation
>> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for timePerPreperation/Task/timePerPreperation
>> 4719 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Task/timePerPreperation
>> 4719 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.tuplizer.EMFInstantiator - Creating
>> eobject instantiator for Task and eclass Task
>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for article/Production/article
>> 4765 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Production/article
>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for article/Production/article
>> 4765 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Production/article
>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for dueTime/Production/dueTime
>> 4765 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Production/dueTime
>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for dueTime/Production/dueTime
>> 4765 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Production/dueTime
>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for missingAmount/Production/missingAmount
>> 4765 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Production/missingAmount
>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for missingAmount/Production/missingAmount
>> 4765 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Production/missingAmount
>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for productionId/Production/productionId
>> 4765 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Production/productionId
>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for productionId/Production/productionId
>> 4765 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Production/productionId
>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for startTime/Production/startTime
>> 4765 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Production/startTime
>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for startTime/Production/startTime
>> 4765 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Production/startTime
>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for totalAmount/Production/totalAmount
>> 4765 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Production/totalAmount
>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for totalAmount/Production/totalAmount
>> 4765 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Production/totalAmount
>> 4765 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler
>> - Created eContainer property handler
>> 4765 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler
>> - Created eContainer property handler
>> 4765 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler
>> - Created eContainerFeatureID handler
>> 4765 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler
>> - Created eContainerFeatureID handler
>> 4765 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.tuplizer.EMFInstantiator - Creating
>> eobject instantiator for Production and eclass Production
>> 4859 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for machines/MachineList/machines
>> 4859 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler
>> - Created getter/setter for MachineList/machines
>> 4859 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for machines/MachineList/machines
>> 4859 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler
>> - Created getter/setter for MachineList/machines
>> 4859 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.tuplizer.EMFInstantiator - Creating
>> eobject instantiator for MachineList and eclass MachineList
>> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for workWeek/Machine/workWeek
>> 4906 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EReferenceP ropertyHandler
>> - Created getter/setter for Machine/workWeek
>> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for workWeek/Machine/workWeek
>> 4906 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EReferenceP ropertyHandler
>> - Created getter/setter for Machine/workWeek
>> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for capacitySearchString/Machine/capacitySearchString
>> 4906 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Machine/capacitySearchString
>> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for capacitySearchString/Machine/capacitySearchString
>> 4906 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Machine/capacitySearchString
>> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for machineId/Machine/machineId
>> 4906 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Machine/machineId
>> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for machineId/Machine/machineId
>> 4906 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Machine/machineId
>> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for machineSearchString/Machine/machineSearchString
>> 4906 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Machine/machineSearchString
>> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for machineSearchString/Machine/machineSearchString
>> 4906 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Machine/machineSearchString
>> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for multiplicity/Machine/multiplicity
>> 4906 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Machine/multiplicity
>> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for multiplicity/Machine/multiplicity
>> 4906 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Machine/multiplicity
>> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for taskSearchString/Machine/taskSearchString
>> 4906 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Machine/taskSearchString
>> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for taskSearchString/Machine/taskSearchString
>> 4906 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Machine/taskSearchString
>> 4906 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler
>> - Created eContainer property handler
>> 4906 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler
>> - Created eContainer property handler
>> 4906 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler
>> - Created eContainerFeatureID handler
>> 4906 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler
>> - Created eContainerFeatureID handler
>> 4906 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.tuplizer.EMFInstantiator - Creating
>> eobject instantiator for Machine and eclass Machine
>> 5015 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for capacityEntryId/CapacityEntry/capacityEntryId
>> 5015 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for CapacityEntry/capacityEntryId
>> 5015 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for capacityEntryId/CapacityEntry/capacityEntryId
>> 5015 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for CapacityEntry/capacityEntryId
>> 5015 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for name/CapacityEntry/name
>> 5015 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for CapacityEntry/name
>> 5015 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for name/CapacityEntry/name
>> 5015 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for CapacityEntry/name
>> 5015 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler
>> - Created eContainer property handler
>> 5015 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler
>> - Created eContainer property handler
>> 5015 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler
>> - Created eContainerFeatureID handler
>> 5015 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFea
Re: Plugin Dependencies [message #44413 is a reply to message #43693] Thu, 10 August 2006 09:51 Go to previous message
Eclipse UserFriend
Hi Joachim,
Sessions are not really for the applications life cycle but can be used for so-called long
conversations.
I use this in the Hibernate EMF resource implementation. Hibernate will only use database resources
when you have an open/running transaction. So you can keep a session open after you commit a
transaction and begin a new transaction (from the same session) when you need that.
See also the hibernate manual (chapter 11, look for long conversations and also extended session).

There are a number of things to take into account when you use one session:
- the session cache will grow over time
- it is hard to recover from a database exception (like a delete constraint violation) because your
session can not be used anymore after a db exception.
- you need to try out what flush mode works best (see also the hibernate manual)

gr. Martin

Joachim Rosskopf wrote:
> Hello Martin,
>
> of course you can use my model.
> I now solved the problem btw. I found a workaround.
> After my initialization query I closed the session, and reopend for each
> addMachine call. And that caused the error.
>
> But as far as I understand a Hibernate Session isn´t made for a long
> term use during the application lifecycle.
>
> What do you think.
> Nice holidays
> ---
> Joachim
>
> Martin Taal wrote:
>> Hi Joachim,
>> I did my best to reproduce this issue and the I accomplished this by
>> reusing the elist instance
>> stored in a WorkWeek days member in another WorkWeek (this is not
>> allowed). Is this something you
>> are doing?
>>
>> Another question I had is if it is okay if I add your model as a
>> testcase to Teneo?
>>
>> Btw, I am on holiday so I don't check my email on a daily basis. So it
>> can take a few days before I
>> can react.
>>
>> gr. Martin
>>
>> Joachim Rosskopf wrote:
>>> Hello Martin,
>>>
>>> addMachine doesn´t work! The call session.getTransaction().commit();
>>> Throws a HibernateException.
>>>
>>> Attached you get the log of the complete session, with exactly one
>>> machine in the list.
>>>
>>> Thank you in advance.
>>> Regards
>>> ---
>>> Joachim
>>>
>>> Martin Taal wrote:
>>>> Hi Joachim,
>>>> You mean the addMachine doesn't work? When you debug through it does
>>>> it run correctly through this method? But the machine does not get
>>>> added in the db?
>>>>
>>>> Can you post the log? If you stop just after the commit in
>>>> addMachine then that would be best probably.
>>>>
>>>> I have attached a log4j.properties which you can use, change every
>>>> word error in debug and you would get the most info.
>>>>
>>>> gr. Martin
>>>>
>>>> Joachim Rosskopf wrote:
>>>>> Hello Martin,
>>>>>
>>>>> would you like to help me another time.
>>>>> I can´t find my mistake. Put it´s probably my mediator code.
>>>>> I´ll attach it, and if you have some minutes it would be very nice
>>>>> if you have an eye on it.
>>>>>
>>>>> Thank you in advance!
>>>>> Regards
>>>>> ---
>>>>> Joachim
>>>>>
>>>>> Martin Taal wrote:
>>>>>> Hi Joachim,
>>>>>> I tested it and it works fine for me (get 2 machines in the db).
>>>>>> Just need to ask but is this if statement correct:
>>>>>> if (machine != null)
>>>>>>
>>>>>> is this true? or should it be:
>>>>>> if (machines != null)
>>>>>>
>>>>>> gr. Martin
>>>>>>
>>>>>> Joachim Rosskopf wrote:
>>>>>
>>>>> ------------------------------------------------------------ ------------
>>>>>
>>>>>
>>>>> package com.lessmann.capa.model.util;
>>>>>
>>>>> import org.apache.commons.logging.Log;
>>>>> import org.apache.commons.logging.LogFactory;
>>>>> import org.eclipse.emf.ecore.EPackage;
>>>>> import org.eclipse.emf.teneo.hibernate.HbDataStore;
>>>>> import org.eclipse.emf.teneo.hibernate.HbHelper;
>>>>> import
>>>>> org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList;
>>>>>
>>>>> import org.hibernate.Query;
>>>>> import org.hibernate.Session;
>>>>> import org.hibernate.SessionFactory;
>>>>>
>>>>> import java.io.IOException;
>>>>> import java.net.URL;
>>>>> import java.sql.PreparedStatement;
>>>>> import java.sql.ResultSet;
>>>>> import java.sql.SQLException;
>>>>> import java.util.ArrayList;
>>>>> import java.util.List;
>>>>> import java.util.Properties;
>>>>>
>>>>> import com.lessmann.capa.model.Activator;
>>>>> import com.lessmann.capa.model.CapacityEntry;
>>>>> import com.lessmann.capa.model.Machine;
>>>>> import com.lessmann.capa.model.MachineList;
>>>>> import com.lessmann.capa.model.ModelFactory;
>>>>> import com.lessmann.capa.model.Production;
>>>>> import com.lessmann.capa.model.Task;
>>>>> import com.lessmann.capa.model.WorkWeek;
>>>>> import com.lessmann.capa.model.impl.ModelPackageImpl;
>>>>> import com.toolsforjobs.util.misc.PropertyObservableBase;
>>>>>
>>>>> public class ModelMediator extends PropertyObservableBase {
>>>>> public static final ModelMediator INSTANCE = new ModelMediator();
>>>>> private static Log log =
>>>>> LogFactory.getLog(ModelMediator.class);
>>>>> protected HbDataStore dataStore;
>>>>> protected MachineList machines;
>>>>> private ModelMediator() {
>>>>> dataStore =
>>>>> HbHelper.INSTANCE.createRegisterDataStore("ModelDataStore");
>>>>> dataStore.setEPackages(new EPackage[]
>>>>> {ModelPackageImpl.eINSTANCE});
>>>>> }
>>>>> private class TaskListProxy {
>>>>> PreparedStatement stmt;
>>>>> TaskListProxy() {
>>>>> StringBuilder query = new StringBuilder();
>>>>> query.append("SELECT DISTINCT aprp.pos,
>>>>> aprp.prnr, aprk.art, res.rsnr, res.bez1 as res_bez, res.wznr,
>>>>> res.ts, ");
>>>>> query.append("res.tr, res.rnr, ress.bez1 as ress_bez,
>>>>> aprp.ianz, aprp.anz, aprk.ldat, aprk.dat ");
>>>>> query.append("FROM res, ress, aprp, aprk WHERE ");
>>>>> query.append("res.wznr LIKE ? AND ");
>>>>> query.append("res.bez1 LIKE ? AND ");
>>>>> query.append("res.ts > 0.0 AND ");
>>>>> query.append("ress.rsnr = res.rnr AND ");
>>>>> query.append("aprp.ianz > 0.0 AND ");
>>>>> query.append("aprp.snr_res = res.rsnr AND
>>>>> "); query.append("aprk.prnr = aprp.prnr AND
>>>>> "); query.append("aprk.erl != 1 ");
>>>>> query.append("ORDER BY res.wznr; ");
>>>>> Session session =
>>>>> dataStore.getSessionFactory().openSession();
>>>>> try {
>>>>> stmt =
>>>>> session.connection().prepareStatement(query.toString());
>>>>> } catch (SQLException sqlex) {
>>>>> log.error("Unable to build statement for task list
>>>>> query;", sqlex);
>>>>> } finally {
>>>>> session.close();
>>>>> }
>>>>> }
>>>>> List loadTasks(Machine machine) {
>>>>> if (stmt != null && machine != null) {
>>>>> try {
>>>>> List tasks = new ArrayList();
>>>>> String machiness =
>>>>> machine.getMachineSearchString().replace('*', '%');
>>>>> String taskss =
>>>>> machine.getTaskSearchString().replace('*', '%');
>>>>> stmt.setString(1, machiness);
>>>>> stmt.setString(2, taskss);
>>>>> ResultSet resultset =
>>>>> stmt.executeQuery();
>>>>> while (resultset.next()) {
>>>>> Task task =
>>>>> ModelFactory.INSTANCE.createTask();
>>>>> task.setTaskId(resultset.getString("rsnr"));
>>>>> task.setName(resultset.getString("res_bez"));
>>>>> task.setTimePerPice(resultset.getFloat("ts"));
>>>>>
>>>>> task.setTimePerPreperation(resultset.getFloat("tr"));
>>>>> CapacityEntry
>>>>> cpentry = ModelFactory.INSTANCE.createCapacityEntry();
>>>>>
>>>>> cpentry.setCapacityEntryId(resultset.getString("rnr"));
>>>>>
>>>>> cpentry.setName(resultset.getString("ress_bez"));
>>>>> task.setCapacityEntry(cpentry);
>>>>> Production
>>>>> production = ModelFactory.INSTANCE.createProduction();
>>>>>
>>>>> production.setProductionId(resultset.getString("prnr"));
>>>>>
>>>>> production.setArticle(resultset.getString("art"));
>>>>> // TODO add parsing of the date here
>>>>> production.setStartTime(null);
>>>>> production.setDueTime(null);
>>>>>
>>>>> production.setTotalAmount(resultset.getFloat("anz"));
>>>>>
>>>>> production.setMissingAmount(resultset.getFloat("ianz"));
>>>>> task.setProduction(production);
>>>>> tasks.add(task);
>>>>> }
>>>>> resultset.close();
>>>>> stmt.close();
>>>>>
>>>>> firePropertyChange("taskListLoaded", false, true);
>>>>> return tasks;
>>>>> } catch (SQLException sqlex) {
>>>>> log.error("Unable to set arguments in statement
>>>>> for task list query;", sqlex);
>>>>> }
>>>>> }
>>>>> return new ArrayList<Task>();
>>>>> }
>>>>> }
>>>>> public void initialize() {
>>>>> if (Activator.getDefault() != null) {
>>>>> log.debug("Loading properties;");
>>>>> dataStore.setHibernateProperties(loadHbProperties());
>>>>> }
>>>>> log.debug("Initialize dataStore;");
>>>>> dataStore.initialize();
>>>>> log.debug("Fetching MachineList ... begin
>>>>> transaction;");
>>>>> Session session = dataStore.getSessionFactory().openSession();
>>>>> session.beginTransaction();
>>>>> try {
>>>>> Query query = session.createQuery("FROM MachineList");
>>>>> List list = query.list();
>>>>> if(list.size() > 0) {
>>>>> machines = (MachineList)list.get(0);
>>>>> HibernatePersistableEList elist =
>>>>> (HibernatePersistableEList)machines.getMachines();
>>>>> if(!elist.isLoaded()) {
>>>>> log.debug("Loading peristable elist;");
>>>>> machines.getMachines().size();
>>>>> }
>>>>> } else {
>>>>> machines = ModelFactory.INSTANCE.createMachineList();
>>>>> session.saveOrUpdate(machines);
>>>>> log.debug("No machines in database ...
>>>>> bootstrapping;");
>>>>> session.update(machines);
>>>>> }
>>>>> session.getTransaction().commit();
>>>>> firePropertyChange("initialized", false, true);
>>>>> } catch (Exception e) {
>>>>> session.getTransaction().rollback();
>>>>> log.error("Unable to initalize MachineList;", e);
>>>>> } finally { session.close();
>>>>> }
>>>>> }
>>>>> private Properties loadHbProperties() {
>>>>> Properties properties = new Properties();
>>>>> URL url =
>>>>> Activator.getDefault().getBundle().getEntry("hibernate.properties ");
>>>>> try {
>>>>> properties.load(url.openStream());
>>>>> } catch (IOException ioex) {
>>>>> log.warn("Unable to load hibernate poperties;", ioex);
>>>>> }
>>>>> return properties;
>>>>> }
>>>>> public MachineList getMachines() {
>>>>> return machines;
>>>>> }
>>>>> public boolean addMachine(Machine machine) {
>>>>> boolean ret = true;
>>>>> Session session =
>>>>> dataStore.getSessionFactory().openSession();
>>>>> session.beginTransaction();
>>>>> try {
>>>>> if (machines != null && machine != null) {
>>>>> session.update(machines);
>>>>> machines.getMachines().add(machine);
>>>>> }
>>>>> session.getTransaction().commit();
>>>>> } catch (Exception e) {
>>>>> log.error("Unable to save machine list;", e);
>>>>> session.getTransaction().rollback();
>>>>> } finally { session.close();
>>>>> }
>>>>> return ret;
>>>>> }
>>>>> public List getTasks(Machine machine) {
>>>>> return new TaskListProxy().loadTasks(machine);
>>>>> }
>>>>> }
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------ ------------
>>>>
>>>>
>>>> # Set root logger level to error and its only appender to A1.
>>>> log4j.rootCategory=error, A1
>>>>
>>>> # A1 is set to be a ConsoleAppender.
>>>> log4j.appender.A1=org.apache.log4j.ConsoleAppender
>>>>
>>>> # A1 uses PatternLayout.
>>>> log4j.appender.A1.layout=org.apache.log4j.PatternLayout
>>>> log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
>>>>
>>>> #log4j.logger.org.hibernate=error
>>>> log4j.logger.org.hibernate=error
>>>> #org.hibernate.pretty
>>>>
>>>> log4j.logger.org.hibernate.tool.hbm2ddl=error
>>>>
>>>> ### log HQL query parser activity
>>>> log4j.logger.org.hibernate.hql.ast.AST=error
>>>>
>>>> ### log just the SQL
>>>> log4j.logger.org.hibernate.SQL=error
>>>>
>>>> ### log JDBC bind parameters ###
>>>> log4j.logger.org.hibernate.type=error
>>>> #log4j.logger.org.hibernate.type=error
>>>>
>>>> ### log schema export/update ###
>>>> log4j.logger.org.hibernate.tool.hbm2ddl=error
>>>>
>>>> ### log HQL parse trees
>>>> log4j.logger.org.hibernate.hql=error
>>>>
>>>> ### log cache activity ###
>>>> log4j.logger.org.hibernate.cache=error
>>>>
>>>> ### log transaction activity
>>>> log4j.logger.org.hibernate.transaction=error
>>>>
>>>> ### log JDBC resource acquisition
>>>> log4j.logger.org.hibernate.jdbc=error
>>>>
>>>> ### enable the following line if you want to track down connection ###
>>>> ### leakages when using DriverManagerConnectionProvider ###
>>>> log4j.logger.org.hibernate.connection.DriverManagerConnectio nProvider=error
>>>>
>>>
>>>
>>> ------------------------------------------------------------ ------------
>>>
>>> 0 [main] INFO org.eclipse.emf.teneo.hibernate.HbHelper -
>>> Creating emf data store and registering it under name: ModelDataStore
>>> 500 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> Initializing protocol/extension for hibernate
>>> 515 [main] INFO org.eclipse.emf.teneo.hibernate.HbHelper -
>>> Returning created emf data store, initialize this newly created data
>>> store!
>>> 844 [main] DEBUG com.lessmann.capa.model.util.ModelMediator -
>>> Loading properties;
>>> 844 [main] DEBUG com.lessmann.capa.model.util.ModelMediator -
>>> Initialize dataStore;
>>> 844 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> >>>>> Creating HB Configuration
>>> log4j:WARN No appenders could be found for logger
>>> (org.hibernate.cfg.Environment).
>>> log4j:WARN Please initialize the log4j system properly.
>>> 1328 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> Generating mapping file from in-mem ecore
>>> log4j:WARN No appenders could be found for logger
>>> (org.eclipse.emf.teneo.mapper.PersistenceMappingBuilderImpl) .
>>> log4j:WARN Please initialize the log4j system properly.
>>> 1812 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.HibernateMappingGener ator -
>>> Geneting Hibernate mapping for
>>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl @132b67c
>>>
>>> 1812 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Mapping Entity
>>> EClass/CapacityEntry
>>> 1812 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - No of
>>> mappedSuperclasses 0
>>> 1812 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Creating
>>> entity tag class
>>> 1812 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - DValue
>>> CapacityEntry
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Table
>>> `capacityentry`
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Processing
>>> mapped superclasses, no of mappedsuperclasses: 0
>>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - processBasic capacityEntryId
>>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - addProperty capacityEntryId of type java.lang.String
>>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - processBasic name
>>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - addProperty name of type java.lang.String
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Mapping Entity
>>> EClass/Machine
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - No of
>>> mappedSuperclasses 0
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Creating
>>> entity tag class
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - DValue Machine
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Table `machine`
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Processing
>>> mapped superclasses, no of mappedsuperclasses: 0
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Generating
>>> many to one unidirectional mapping for EReference/workWeek
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Process
>>> many-to-one EReference/workWeek
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Target
>>> WorkWeek
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>>> addManyToOne workWeek/WorkWeek
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>>> addJoinColumns many-to-one/ no of joincolumns1
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>>> JoinColumn workweek_id
>>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - Skipping transient feature for tasks
>>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - processBasic capacitySearchString
>>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - addProperty capacitySearchString of type java.lang.String
>>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - processBasic machineId
>>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - addProperty machineId of type java.lang.String
>>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - processBasic machineSearchString
>>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - addProperty machineSearchString of type java.lang.String
>>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - processBasic multiplicity
>>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - addProperty multiplicity of type int
>>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - processBasic taskSearchString
>>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - addProperty taskSearchString of type java.lang.String
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Mapping Entity
>>> EClass/MachineList
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - No of
>>> mappedSuperclasses 0
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Creating
>>> entity tag class
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - DValue
>>> MachineList
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Table
>>> `machinelist`
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Processing
>>> mapped superclasses, no of mappedsuperclasses: 0
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.OneToManyMapper - Generating
>>> one to many unidirectional mapping for EReference/machines
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>>> Adding key columns
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>>> Column machines_id
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>>> Add list index MACHINELIST_MACHINES_IDX to machines
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Mapping Entity
>>> EClass/Production
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - No of
>>> mappedSuperclasses 0
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Creating
>>> entity tag class
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - DValue Production
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Table
>>> `production`
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Processing
>>> mapped superclasses, no of mappedsuperclasses: 0
>>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - processBasic article
>>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - addProperty article of type java.lang.String
>>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - processBasic dueTime
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - addProperty dueTime of type serializable
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - processBasic missingAmount
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - addProperty missingAmount of type float
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - processBasic productionId
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - addProperty productionId of type java.lang.String
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - processBasic startTime
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - addProperty startTime of type serializable
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - processBasic totalAmount
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - addProperty totalAmount of type float
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Mapping Entity
>>> EClass/Task
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - No of
>>> mappedSuperclasses 0
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Creating
>>> entity tag class
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - DValue Task
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Table `task`
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Processing
>>> mapped superclasses, no of mappedsuperclasses: 0
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Generating
>>> many to one unidirectional mapping for EReference/capacityEntry
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Process
>>> many-to-one EReference/capacityEntry
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Target
>>> CapacityEntry
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>>> addManyToOne capacityEntry/CapacityEntry
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>>> addJoinColumns many-to-one/ no of joincolumns1
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>>> JoinColumn capacityentry_id
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Generating
>>> many to one unidirectional mapping for EReference/production
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Process
>>> many-to-one EReference/production
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Target
>>> Production
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>>> addManyToOne production/Production
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>>> addJoinColumns many-to-one/ no of joincolumns1
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>>> JoinColumn production_id
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - processBasic name
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - addProperty name of type java.lang.String
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - processBasic taskId
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - addProperty taskId of type java.lang.String
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - processBasic timePerPice
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - addProperty timePerPice of type float
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - processBasic timePerPreperation
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - addProperty timePerPreperation of type float
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Mapping Entity
>>> EClass/WorkDay
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - No of
>>> mappedSuperclasses 0
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Creating
>>> entity tag class
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - DValue WorkDay
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Table `workday`
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Processing
>>> mapped superclasses, no of mappedsuperclasses: 0
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - processBasic dayOfWeek
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - addProperty dayOfWeek of type int
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - processBasic duration
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - addProperty duration of type int
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - processBasic startTime
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - addProperty startTime of type int
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Mapping Entity
>>> EClass/WorkWeek
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - No of
>>> mappedSuperclasses 0
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Creating
>>> entity tag class
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - DValue WorkWeek
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Table `workweek`
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Processing
>>> mapped superclasses, no of mappedsuperclasses: 0
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.OneToManyMapper - Generating
>>> one to many unidirectional mapping for EReference/days
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>>> Adding key columns
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>>> Column days_id
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>>> Add list index WORKWEEK_DAYS_IDX to days
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - processBasic workWeekId
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - addProperty workWeekId of type java.lang.String
>>> 2812 [main] WARN org.eclipse.emf.teneo.hibernate.HbDataStore - No
>>> hibernate cache provider set, using
>>> org.hibernate.cache.HashtableCacheProvider
>>> 2812 [main] WARN org.eclipse.emf.teneo.hibernate.HbDataStore - For
>>> production use please set the ehcache (or other) provider explicitly
>>> and configure it
>>> 2812 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> Setting properties in Hibernate Configuration:
>>> 2812 [main] INFO org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> hibernate.connection.username: pg_pp01
>>> 2812 [main] INFO org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> hibernate.default_schema: public
>>> 2812 [main] INFO org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> hibernate.connection.password: postgress
>>> 2812 [main] INFO org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> hibernate.cache.provider_class:
>>> org.hibernate.cache.HashtableCacheProvider
>>> 2812 [main] INFO org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> hibernate.dialect: org.hibernate.dialect.PostgreSQLDialect
>>> 2812 [main] INFO org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> hibernate.connection.url: jdbc:postgresql://localhost:5432/MXDBS
>>> 2812 [main] INFO org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> hibernate.connection.driver_class: org.postgresql.Driver
>>> 2812 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> Determine referers for each class
>>> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> Adding container mapping for WorkWeek
>>> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> Adding eContainer and econtainerfeatureid properties to null
>>> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> Adding container mapping for WorkDay
>>> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> Adding eContainer and econtainerfeatureid properties to null
>>> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> Adding container mapping for Production
>>> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> Adding eContainer and econtainerfeatureid properties to null
>>> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> Adding container mapping for Machine
>>> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> Adding eContainer and econtainerfeatureid properties to null
>>> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> Adding container mapping for CapacityEntry
>>> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> Adding eContainer and econtainerfeatureid properties to null
>>> 2844 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> Starting update of schema
>>> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore - >>>
>>> Update of schema finished
>>> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> Registering datastore with persistent classes
>>> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbHelper -
>>> Datastore: ModelDataStore registered for pc: WorkWeek
>>> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbHelper -
>>> Datastore: ModelDataStore registered for pc: WorkDay
>>> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbHelper -
>>> Datastore: ModelDataStore registered for pc: Task
>>> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbHelper -
>>> Datastore: ModelDataStore registered for pc: Production
>>> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbHelper -
>>> Datastore: ModelDataStore registered for pc: MachineList
>>> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbHelper -
>>> Datastore: ModelDataStore registered for pc: Machine
>>> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbHelper -
>>> Datastore: ModelDataStore registered for pc: CapacityEntry
>>> 4328 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for days/WorkWeek/days
>>> 4328 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler
>>> - Created getter/setter for WorkWeek/days
>>> 4328 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for days/WorkWeek/days
>>> 4328 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler
>>> - Created getter/setter for WorkWeek/days
>>> 4328 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for workWeekId/WorkWeek/workWeekId
>>> 4328 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for WorkWeek/workWeekId
>>> 4328 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for workWeekId/WorkWeek/workWeekId
>>> 4328 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for WorkWeek/workWeekId
>>> 4328 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler
>>> - Created eContainer property handler
>>> 4328 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler
>>> - Created eContainer property handler
>>> 4344 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler
>>> - Created eContainerFeatureID handler
>>> 4344 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler
>>> - Created eContainerFeatureID handler
>>> 4344 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.tuplizer.EMFInstantiator - Creating
>>> eobject instantiator for WorkWeek and eclass WorkWeek
>>> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for dayOfWeek/WorkDay/dayOfWeek
>>> 4625 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for WorkDay/dayOfWeek
>>> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for dayOfWeek/WorkDay/dayOfWeek
>>> 4625 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for WorkDay/dayOfWeek
>>> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for duration/WorkDay/duration
>>> 4625 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for WorkDay/duration
>>> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for duration/WorkDay/duration
>>> 4625 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for WorkDay/duration
>>> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for startTime/WorkDay/startTime
>>> 4625 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for WorkDay/startTime
>>> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for startTime/WorkDay/startTime
>>> 4625 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for WorkDay/startTime
>>> 4625 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler
>>> - Created eContainer property handler
>>> 4625 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler
>>> - Created eContainer property handler
>>> 4625 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler
>>> - Created eContainerFeatureID handler
>>> 4625 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler
>>> - Created eContainerFeatureID handler
>>> 4625 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.tuplizer.EMFInstantiator - Creating
>>> eobject instantiator for WorkDay and eclass WorkDay
>>> 4703 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for capacityEntry/Task/capacityEntry
>>> 4703 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EReferenceP ropertyHandler
>>> - Created getter/setter for Task/capacityEntry
>>> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for capacityEntry/Task/capacityEntry
>>> 4719 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EReferenceP ropertyHandler
>>> - Created getter/setter for Task/capacityEntry
>>> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for production/Task/production
>>> 4719 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EReferenceP ropertyHandler
>>> - Created getter/setter for Task/production
>>> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for production/Task/production
>>> 4719 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EReferenceP ropertyHandler
>>> - Created getter/setter for Task/production
>>> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for name/Task/name
>>> 4719 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Task/name
>>> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for name/Task/name
>>> 4719 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Task/name
>>> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for taskId/Task/taskId
>>> 4719 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Task/taskId
>>> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for taskId/Task/taskId
>>> 4719 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Task/taskId
>>> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for timePerPice/Task/timePerPice
>>> 4719 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Task/timePerPice
>>> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for timePerPice/Task/timePerPice
>>> 4719 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Task/timePerPice
>>> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for timePerPreperation/Task/timePerPreperation
>>> 4719 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Task/timePerPreperation
>>> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for timePerPreperation/Task/timePerPreperation
>>> 4719 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Task/timePerPreperation
>>> 4719 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.tuplizer.EMFInstantiator - Creating
>>> eobject instantiator for Task and eclass Task
>>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for article/Production/article
>>> 4765 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Production/article
>>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for article/Production/article
>>> 4765 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Production/article
>>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for dueTime/Production/dueTime
>>> 4765 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Production/dueTime
>>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for dueTime/Production/dueTime
>>> 4765 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Production/dueTime
>>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for missingAmount/Production/missingAmount
>>> 4765 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Production/missingAmount
>>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for missingAmount/Production/missingAmount
>>> 4765 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Production/missingAmount
>>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for productionId/Production/productionId
>>> 4765 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Production/productionId
>>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for productionId/Production/productionId
>>> 4765 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Production/productionId
>>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for startTime/Production/startTime
>>> 4765 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Production/startTime
>>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for startTime/Production/startTime
>>> 4765 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Production/startTime
>>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for totalAmount/Production/totalAmount
>>> 4765 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Production/totalAmount
>>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for totalAmount/Production/totalAmount
>>> 4765 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Production/totalAmount
>>> 4765 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler
>>> - Created eContainer property handler
>>> 4765 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler
>>> - Created eContainer property handler
>>> 4765 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler
>>> - Created eContainerFeatureID handler
>>> 4765 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler
>>> - Created eContainerFeatureID handler
>>> 4765 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.tuplizer.EMFInstantiator - Creating
>>> eobject instantiator for Production and eclass Production
>>> 4859 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for machines/MachineList/machines
>>> 4859 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler
>>> - Created getter/setter for MachineList/machines
>>> 4859 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for machines/MachineList/machines
>>> 4859 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler
>>> - Created getter/setter for MachineList/machines
>>> 4859 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.tuplizer.EMFInstantiator - Creating
>>> eobject instantiator for MachineList and eclass MachineList
>>> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for workWeek/Machine/workWeek
>>> 4906 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EReferenceP ropertyHandler
>>> - Created getter/setter for Machine/workWeek
>>> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for workWeek/Machine/workWeek
>>> 4906 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EReferenceP ropertyHandler
>>> - Created getter/setter for Machine/workWeek
>>> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for capacitySearchString/Machine/capacitySearchString
>>> 4906 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Machine/capacitySearchString
>>> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for capacitySearchString/Machine/capacitySearchString
>>> 4906 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Machine/capacitySearchString
>>> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for machineId/Machine/machineId
>>> 4906 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Machine/machineId
>>> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>>
Re: Plugin Dependencies [message #582895 is a reply to message #40417] Fri, 21 July 2006 15:51 Go to previous message
Eclipse UserFriend
Hi Joachim,
How are your current dependencies setup in the manifest.mf of the different projects (model,
editor)? Can you post the manifest.mf's for me?

gr. Martin

Joachim Rosskopf wrote:
> Hello List,
>
> using teneo in CVS faces with the following stack-trace caused by a call
> to buildSessionFactory from Hibernates Configuration class:
>
> <snip>
> 14:13:23,140 ERROR HbDataStore:469 - Unable to build session factory!
> org.hibernate.MappingException: Could not determine type for:
> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rUserType,
> for columns: [org.hibernate.mapping.Column(econtainer_class),
> org.hibernate.mapping.Column(e_container)]
> at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:2 66)
> at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:2 53)
> at org.hibernate.mapping.Property.isValid(Property.java:185)
> at
> org.hibernate.mapping.PersistentClass.validate(PersistentCla ss.java:395)
> at org.hibernate.mapping.RootClass.validate(RootClass.java:192)
> at org.hibernate.cfg.Configuration.validate(Configuration.java: 1026)
> at
> org.hibernate.cfg.Configuration.buildSessionFactory(Configur ation.java:1211)
>
> at
> org.eclipse.emf.teneo.hibernate.HbDataStore.buildSessionFact ory(HbDataStore.java:467)
>
> at
> org.eclipse.emf.teneo.hibernate.HbDataStore.initialize(HbDat aStore.java:188)
>
> </snip>
>
> I guess that is a problem with my plugin dependencies.
> But I did not manage to find out what plugins dependant on each other.
>
> Regards.
> ---
> Joachim



--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
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
Re: Plugin Dependencies [message #582915 is a reply to message #40542] Sat, 22 July 2006 02:42 Go to previous message
Eclipse UserFriend
Originally posted by: rosskopf.progroup-inc.com

Hello Martin,

the Manifest of my RCP Plugin is like this:
<snip>
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Capa Plug-in
Bundle-SymbolicName: com.lessmann.capa; singleton:=true
Bundle-Version: 0.0.1
Bundle-ClassPath: capa.jar
Bundle-Activator: com.lessmann.capa.Activator
Bundle-Vendor: LESSMANN
Bundle-Localization: plugin
Require-Bundle: org.eclipse.ui,
org.eclipse.ui.forms,
org.eclipse.core.runtime,
com.toolsforjobs.log4j,
com.toolsforjobs.util,
com.toolsforjobs.lib.orm,
com.lessmann.capa.model,
com.lessmann.capa.model.edit,
com.lessmann.capa.model.editor
Eclipse-LazyStart: false
Bundle-RequiredExecutionEnvironment: J2SE-1.5
</snip>

The Code of the EMF Model, which contains the Mediator, calling
initialize in HbDataStore, has the following Manifest:
<snip>
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Model Plug-in
Bundle-SymbolicName: com.lessmann.capa.model; singleton:=true
Bundle-Version: 1.0.0
Bundle-ClassPath: model.jar
Bundle-Activator: com.lessmann.capa.model.Activator
Bundle-Vendor: LESSMANN
Bundle-Localization: plugin
Require-Bundle: com.toolsforjobs.log4j,
com.toolsforjobs.util,
com.toolsforjobs.lib.orm,
org.eclipse.ui,
org.eclipse.core.runtime,
org.eclipse.core.resources,
org.eclipse.emf,
org.eclipse.emf.ecore,
org.eclipse.emf.ecore.sdo,
org.eclipse.emf.ecore.xmi,
org.eclipse.emf.teneo.hibernate,
org.junit4
Eclipse-LazyStart: true
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Export-Package: com.lessmann.capa.model,
com.lessmann.capa.model.impl,
com.lessmann.capa.model.test,
com.lessmann.capa.model.util
</snip>

Thats is all a little bit confusing to me.
Thank you in advance!
---
Joachim
Re: Plugin Dependencies [message #582926 is a reply to message #40570] Sat, 22 July 2006 05:34 Go to previous message
Eclipse UserFriend
Hi Joachim,
The problem is (afaics) related to the fact that hibernate can not see the Teneo class
org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rUserType.

Where are your hibernate libraries? In teneo the hibernate libraries are not provided as part of the
download because of different licensing.
The hibernate jars should preferably in a separate plugin which is added to the dependency tab of
your model plugin then the registerbuddy mechanism should be used to let hibernate know about the
rest of the classes. You can read about this here: http://www.hibernate.org/311.html

Another thing you might add to the Manifest.MF (in the manifest.mf tab of the manifest editor):
Eclipse-RegisterBuddy: org.eclipse.emf.teneo.hibernate

Note that this part of Teneo (plugin/classpath resolving in a rcp) has not been tested yet. The
junit tests for Teneo Hibernate work fine for the most (except for featuremap issue with Callisto
release which I mentioned earlier).

gr. Martin

Joachim Rosskopf wrote:
> Hello Martin,
>
> the Manifest of my RCP Plugin is like this:
> <snip>
> Manifest-Version: 1.0
> Bundle-ManifestVersion: 2
> Bundle-Name: Capa Plug-in
> Bundle-SymbolicName: com.lessmann.capa; singleton:=true
> Bundle-Version: 0.0.1
> Bundle-ClassPath: capa.jar
> Bundle-Activator: com.lessmann.capa.Activator
> Bundle-Vendor: LESSMANN
> Bundle-Localization: plugin
> Require-Bundle: org.eclipse.ui,
> org.eclipse.ui.forms,
> org.eclipse.core.runtime,
> com.toolsforjobs.log4j,
> com.toolsforjobs.util,
> com.toolsforjobs.lib.orm,
> com.lessmann.capa.model,
> com.lessmann.capa.model.edit,
> com.lessmann.capa.model.editor
> Eclipse-LazyStart: false
> Bundle-RequiredExecutionEnvironment: J2SE-1.5
> </snip>
>
> The Code of the EMF Model, which contains the Mediator, calling
> initialize in HbDataStore, has the following Manifest:
> <snip>
> Manifest-Version: 1.0
> Bundle-ManifestVersion: 2
> Bundle-Name: Model Plug-in
> Bundle-SymbolicName: com.lessmann.capa.model; singleton:=true
> Bundle-Version: 1.0.0
> Bundle-ClassPath: model.jar
> Bundle-Activator: com.lessmann.capa.model.Activator
> Bundle-Vendor: LESSMANN
> Bundle-Localization: plugin
> Require-Bundle: com.toolsforjobs.log4j,
> com.toolsforjobs.util,
> com.toolsforjobs.lib.orm,
> org.eclipse.ui,
> org.eclipse.core.runtime,
> org.eclipse.core.resources,
> org.eclipse.emf,
> org.eclipse.emf.ecore,
> org.eclipse.emf.ecore.sdo,
> org.eclipse.emf.ecore.xmi,
> org.eclipse.emf.teneo.hibernate,
> org.junit4
> Eclipse-LazyStart: true
> Bundle-RequiredExecutionEnvironment: J2SE-1.5
> Export-Package: com.lessmann.capa.model,
> com.lessmann.capa.model.impl,
> com.lessmann.capa.model.test,
> com.lessmann.capa.model.util
> </snip>
>
> Thats is all a little bit confusing to me.
> Thank you in advance!
> ---
> Joachim


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
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
Re: Plugin Dependencies [message #582952 is a reply to message #40600] Sun, 23 July 2006 06:00 Go to previous message
Eclipse UserFriend
Originally posted by: rosskopf.progroup-inc.com

Hey Martin,

I luckily managed to get teneo running.
I don´t know really why and how. After deleting all the Jar-Plugins and
creating them like you explained it worked!

But unfortunally I´m running into the next problem.
I´m using the following piece of code to initialize my model root class;
<snip>
log.debug("Fetching MachineList ... begin transaction;");
Session session = dataStore.getSessionFactory().openSession();
session.beginTransaction();
try {
Query query = session.createQuery("FROM MachineList");
List list = query.list();
if(list.size() > 0) {
machines = (MachineList)list.get(0);
machines.getMachines();
} else {
machines = ModelFactory.INSTANCE.createMachineList();
session.saveOrUpdate(machines);
log.debug("No machines in database ... bootstrapping;");
}
session.getTransaction().commit();
firePropertyChange("initialized", false, true);
} catch (Exception e) {
session.getTransaction().rollback();
log.error("Unable to initalize MachineList;", e);
} finally {
session.close();
}
</snap>

But the EMF-generated editors show me an error in my TreeViewer:
<snip>
org.hibernate.LazyInitializationException: failed to lazily initialize a
collection of role: MachineList.machines, no session or session was closed
</snip>

The last log output is:
<snip>
11:54:50,424 DEBUG IdentifierCacheHandler:70 - Setting id: 146 for
object com.lessmann.capa.model.impl.MachineListImpl in idcache
11:54:50,455 DEBUG IdentifierCacheHandler:97 - Setting version: 0 for
object com.lessmann.capa.model.impl.MachineListImpl in idcache
11:54:50,470 DEBUG EListPropertyHandler:206 - Set value
org.hibernate.collection.PersistentList for target
com.lessmann.capa.model.impl.MachineListImpl field machines
11:54:51,627 DEBUG HibernatePersistableEList:76 - Started loading elist
EList of type:
org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList
of member machines owned by com.lessmann.capa.model.impl.MachineListImpl
with delegate list org.hibernate.collection.PersistentList
11:54:51,627 DEBUG HibernatePersistableEList:100 - EList is not loaded
in session context
</snip>

If I try to add a new Machine to my MachineList and presist it with the
following code:
<snip>
Session session = dataStore.getSessionFactory().openSession();
session.beginTransaction();
try {
machines.getMachines().add(machine);
session.saveOrUpdate(machines);
session.getTransaction().commit();
} catch (Exception e) {
log.error("Unable to save machine list;", e);
session.getTransaction().rollback();
} finally {
session.close();
}
</snip>

I get an exception like this
<snip>
11:57:17,205 ERROR ModelMediator:96 - Unable to save machine list;
org.hibernate.LazyInitializationException: failed to lazily initialize a
collection of role: MachineList.machines, no session or session was closed
</snip>

Again I am confused!
Thank you and nice Sunday!
---
Joachim
Re: Plugin Dependencies [message #582962 is a reply to message #40631] Sun, 23 July 2006 07:12 Go to previous message
Eclipse UserFriend
Hi Joachim,
The machines list (which you get when calling machines.getMachineList()) is not loaded when you
commit the transaction (because it is lazily loaded). The call to getMachines does not load it
either, only a call on the list itself will load it (e.g. getMachines().size()). Then when you
access the list through the tree viewer (I guess that you open a subtree) the system tries to load
the list and because there is no session the getMachines will fail with the exception you mention.

Also in the second code snippet you mention. You do the call:
> machines.getMachines().add(machine);

before the call
> session.saveOrUpdate(machines);

So when you do the .add call on getMachines it will try to load the list while the machines object
is not yet attached to the session.
If you do the session.update(machines) before the call to getMachines then it should work better.

The same for actions on the tree if you retrieve the children then you need to open a session,
attach the parent object and return the children.

Btw, to check if a list is already loaded you can cast it to HibernatePersistableEList and then call
isLoaded(). If it is already loaded then you don't need to open a session.

gr. Martin

Joachim Rosskopf wrote:
> Hey Martin,
>
> I luckily managed to get teneo running.
> I don´t know really why and how. After deleting all the Jar-Plugins and
> creating them like you explained it worked!
>
> But unfortunally I´m running into the next problem.
> I´m using the following piece of code to initialize my model root class;
> <snip>
> log.debug("Fetching MachineList ... begin transaction;");
> Session session = dataStore.getSessionFactory().openSession();
> session.beginTransaction();
> try {
> Query query = session.createQuery("FROM MachineList");
> List list = query.list();
> if(list.size() > 0) {
> machines = (MachineList)list.get(0);
> machines.getMachines();
> } else {
> machines = ModelFactory.INSTANCE.createMachineList();
> session.saveOrUpdate(machines);
> log.debug("No machines in database ... bootstrapping;");
> }
> session.getTransaction().commit();
> firePropertyChange("initialized", false, true);
> } catch (Exception e) {
> session.getTransaction().rollback();
> log.error("Unable to initalize MachineList;", e);
> } finally {
> session.close();
> }
> </snap>
>
> But the EMF-generated editors show me an error in my TreeViewer:
> <snip>
> org.hibernate.LazyInitializationException: failed to lazily initialize a
> collection of role: MachineList.machines, no session or session was closed
> </snip>
>
> The last log output is:
> <snip>
> 11:54:50,424 DEBUG IdentifierCacheHandler:70 - Setting id: 146 for
> object com.lessmann.capa.model.impl.MachineListImpl in idcache
> 11:54:50,455 DEBUG IdentifierCacheHandler:97 - Setting version: 0 for
> object com.lessmann.capa.model.impl.MachineListImpl in idcache
> 11:54:50,470 DEBUG EListPropertyHandler:206 - Set value
> org.hibernate.collection.PersistentList for target
> com.lessmann.capa.model.impl.MachineListImpl field machines
> 11:54:51,627 DEBUG HibernatePersistableEList:76 - Started loading elist
> EList of type:
> org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList
> of member machines owned by com.lessmann.capa.model.impl.MachineListImpl
> with delegate list org.hibernate.collection.PersistentList
> 11:54:51,627 DEBUG HibernatePersistableEList:100 - EList is not loaded
> in session context
> </snip>
>
> If I try to add a new Machine to my MachineList and presist it with the
> following code:
> <snip>
> Session session = dataStore.getSessionFactory().openSession();
> session.beginTransaction();
> try {
> machines.getMachines().add(machine);
> session.saveOrUpdate(machines);
> session.getTransaction().commit();
> } catch (Exception e) {
> log.error("Unable to save machine list;", e);
> session.getTransaction().rollback();
> } finally {
> session.close();
> }
> </snip>
>
> I get an exception like this
> <snip>
> 11:57:17,205 ERROR ModelMediator:96 - Unable to save machine list;
> org.hibernate.LazyInitializationException: failed to lazily initialize a
> collection of role: MachineList.machines, no session or session was closed
> </snip>
>
> Again I am confused!
> Thank you and nice Sunday!
> ---
> Joachim


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
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
Re: Plugin Dependencies [message #582983 is a reply to message #40662] Sun, 23 July 2006 09:42 Go to previous message
Eclipse UserFriend
Originally posted by: rosskopf.progroup-inc.com

Hello Martin,

thank you for being so patient.
The loading works fine for me now. And I can save exactly one Machine.
But if I try to save the second one I get the following error:

<snip>
15:01:43,142 ERROR ModelMediator:102 - Unable to save machine list;
org.hibernate.HibernateException: Don't change the reference to a
collection with cascade="all-delete-orphan": WorkWeek.days
</snip>

I use the following code now:
<snip>
Session session = dataStore.getSessionFactory().openSession();
session.beginTransaction();
try {
session.update(machines);
machines.getMachines().add(machine);

session.getTransaction().commit();
} catch (Exception e) {
log.error("Unable to save machine list;", e);
session.getTransaction().rollback();
} finally {
session.close();
}

So you told me to attach all new instances to the session. I tried so :-).

<snip>
Session session = dataStore.getSessionFactory().openSession();
session.beginTransaction();
try {
if (machine != null) {
session.update(machines);
machines.getMachines().add(machine);

if (machine.getWorkWeek() != null) {
session.save(machine);
WorkWeek workWeek = machine.getWorkWeek();

if(workWeek.getDays().size() > 0) {
session.save(workWeek);
}
}
}
session.getTransaction().commit();
} catch (Exception e) {
log.error("Unable to save machine list;", e);
session.getTransaction().rollback();
} finally {
session.close();
}
</snip>

Now every parent-object should be attached to the session. But I get the
same error as above. Hmm. Would you give me a hint once again?

Regards
---
Joachim
Re: Plugin Dependencies [message #582993 is a reply to message #40693] Sun, 23 July 2006 14:12 Go to previous message
Eclipse UserFriend
Hi Joachim,
Never had that exception, my guess it would say that you use one instance of a list in two locations
(I think the days list is used in two or more WorkWeek's), but I am guessing here.
Maybe the following applies to your case:
http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=g et_topic&f=78&t=001232

Looking at the second piece of code, the part in which you separately save the WorkWeek is not
required, it should have been automatically saved together with its parent (the machine).

gr. Martin

Joachim Rosskopf wrote:
> Hello Martin,
>
> thank you for being so patient.
> The loading works fine for me now. And I can save exactly one Machine.
> But if I try to save the second one I get the following error:
>
> <snip>
> 15:01:43,142 ERROR ModelMediator:102 - Unable to save machine list;
> org.hibernate.HibernateException: Don't change the reference to a
> collection with cascade="all-delete-orphan": WorkWeek.days
> </snip>
>
> I use the following code now:
> <snip>
> Session session = dataStore.getSessionFactory().openSession();
> session.beginTransaction();
> try {
> session.update(machines);
> machines.getMachines().add(machine);
>
> session.getTransaction().commit();
> } catch (Exception e) {
> log.error("Unable to save machine list;", e);
> session.getTransaction().rollback();
> } finally {
> session.close();
> }
>
> So you told me to attach all new instances to the session. I tried so :-).
>
> <snip>
> Session session = dataStore.getSessionFactory().openSession();
> session.beginTransaction();
> try {
> if (machine != null) {
> session.update(machines);
> machines.getMachines().add(machine);
>
> if (machine.getWorkWeek() != null) {
> session.save(machine);
> WorkWeek workWeek = machine.getWorkWeek();
>
> if(workWeek.getDays().size() > 0) {
> session.save(workWeek);
> }
> }
> }
> session.getTransaction().commit();
> } catch (Exception e) {
> log.error("Unable to save machine list;", e);
> session.getTransaction().rollback();
> } finally {
> session.close();
> }
> </snip>
>
> Now every parent-object should be attached to the session. But I get the
> same error as above. Hmm. Would you give me a hint once again?
>
> Regards
> ---
> Joachim


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
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
Re: Plugin Dependencies [message #583154 is a reply to message #40724] Wed, 26 July 2006 03:24 Go to previous message
Eclipse UserFriend
Originally posted by: rosskopf.progroup-inc.com

Hello Martin,

as far as I understand the exception "Don't change the reference to a
collection with cascade="all-delete-orphan": WorkWeek.days" has
something to do with PK-FK handling of many-to-many relations. And I
thought exactly that is the teneo/elver part?

The strange thing is, that the first insertion in an empty database
works well.

But if I try to assemble the second one and do the following:
<snip>
Session session = dataStore.getSessionFactory().openSession();
session.beginTransaction();
try {
if (machine != null) {
session.update(machines);
Machine m = ModelFactory.INSTANCE.createMachine();
WorkWeek w = ModelFactory.INSTANCE.createWorkWeek();
w.getDays().add(ModelFactory.INSTANCE.createWorkDay());
w.getDays().add(ModelFactory.INSTANCE.createWorkDay());
w.getDays().add(ModelFactory.INSTANCE.createWorkDay());
w.getDays().add(ModelFactory.INSTANCE.createWorkDay());
w.getDays().add(ModelFactory.INSTANCE.createWorkDay());
w.getDays().add(ModelFactory.INSTANCE.createWorkDay());
w.getDays().add(ModelFactory.INSTANCE.createWorkDay());
m.setMachineId("test");
m.setWorkWeek(w);

machines.getMachines().add(m);
}
session.getTransaction().commit();
} catch (Exception e) {
log.error("Unable to save machine list;", e);
session.getTransaction().rollback();
} finally {
session.close();
}
</snip>

This should create a new machine in the machinelist (which already
contains exactly 1 machine). But it doesn´t. And I don´t know, where
something can go wrong within my code (That are all newly created
instances).

Can´t there something be wrong IdentifiertCacheHandler or something like
that?

Regards
---
Joachim


Martin Taal wrote:
> Hi Joachim,
> Never had that exception, my guess it would say that you use one
> instance of a list in two locations (I think the days list is used in
> two or more WorkWeek's), but I am guessing here.
> Maybe the following applies to your case:
> http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=g et_topic&f=78&t=001232
>
>
> Looking at the second piece of code, the part in which you separately
> save the WorkWeek is not required, it should have been automatically
> saved together with its parent (the machine).
>
> gr. Martin
Re: Plugin Dependencies [message #583155 is a reply to message #40992] Wed, 26 July 2006 03:27 Go to previous message
Eclipse UserFriend
Hi Joachim,
Can you upload/send the mapping file? Can be retrieved from the HbDataStore with getMappingXML.

gr. Martin

Joachim Rosskopf wrote:
> Hello Martin,
>
> as far as I understand the exception "Don't change the reference to a
> collection with cascade="all-delete-orphan": WorkWeek.days" has
> something to do with PK-FK handling of many-to-many relations. And I
> thought exactly that is the teneo/elver part?
>
> The strange thing is, that the first insertion in an empty database
> works well.
>
> But if I try to assemble the second one and do the following:
> <snip>
> Session session = dataStore.getSessionFactory().openSession();
> session.beginTransaction();
> try {
> if (machine != null) {
> session.update(machines);
> Machine m = ModelFactory.INSTANCE.createMachine();
> WorkWeek w = ModelFactory.INSTANCE.createWorkWeek();
> w.getDays().add(ModelFactory.INSTANCE.createWorkDay());
> w.getDays().add(ModelFactory.INSTANCE.createWorkDay());
> w.getDays().add(ModelFactory.INSTANCE.createWorkDay());
> w.getDays().add(ModelFactory.INSTANCE.createWorkDay());
> w.getDays().add(ModelFactory.INSTANCE.createWorkDay());
> w.getDays().add(ModelFactory.INSTANCE.createWorkDay());
> w.getDays().add(ModelFactory.INSTANCE.createWorkDay());
> m.setMachineId("test");
> m.setWorkWeek(w);
>
> machines.getMachines().add(m);
> }
> session.getTransaction().commit();
> } catch (Exception e) {
> log.error("Unable to save machine list;", e);
> session.getTransaction().rollback();
> } finally {
> session.close();
> }
> </snip>
>
> This should create a new machine in the machinelist (which already
> contains exactly 1 machine). But it doesn´t. And I don´t know, where
> something can go wrong within my code (That are all newly created
> instances).
>
> Can´t there something be wrong IdentifiertCacheHandler or something like
> that?
>
> Regards
> ---
> Joachim
>
>
> Martin Taal wrote:
>> Hi Joachim,
>> Never had that exception, my guess it would say that you use one
>> instance of a list in two locations (I think the days list is used in
>> two or more WorkWeek's), but I am guessing here.
>> Maybe the following applies to your case:
>> http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=g et_topic&f=78&t=001232
>>
>>
>> Looking at the second piece of code, the part in which you separately
>> save the WorkWeek is not required, it should have been automatically
>> saved together with its parent (the machine).
>>
>> gr. Martin


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
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
Re: Plugin Dependencies [message #583173 is a reply to message #41023] Wed, 26 July 2006 03:35 Go to previous message
Eclipse UserFriend
Originally posted by: rosskopf.progroup-inc.com

This is a multi-part message in MIME format.
--------------050507070701040006060208
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hey Martin,

sorry to reach by email, was a mistake.
Attached the mapping XML

Regards
---
Joachim

Martin Taal wrote:
> Hi Joachim,
> Can you upload/send the mapping file? Can be retrieved from the
> HbDataStore with getMappingXML.
>
> gr. Martin

--------------050507070701040006060208
Content-Type: text/xml;
name="mapping.xml"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="mapping.xml"

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<!-- Generated by Elver Store tools on Wed Jul 26 09:30:50 CEST 2006 -->
<hibernate-mapping>
<class entity-name="CapacityEntry" abstract="false" lazy="false" discriminator-value="CapacityEntry" table="`capacityentry`">
<id type="long">
<generator class="native"/>
</id>
<discriminator column="`dtype`" type="string"/>
<version name="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler "/>
<property name="capacityEntryId" type="java.lang.String" lazy="false" column="`capacityentryid`" not-null="false" unique="false"/>
<property name="name" type="java.lang.String" lazy="false" column="`name`" not-null="false" unique="false"/>
</class>
<class entity-name="Machine" abstract="false" lazy="false" discriminator-value="Machine" table="`machine`">
<id type="long">
<generator class="native"/>
</id>
<discriminator column="`dtype`" type="string"/>
<version name="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler "/>
<many-to-one name="workWeek" entity-name="WorkWeek" cascade="all" lazy="false" insert="true" update="true" not-null="true">
<column not-null="true" unique="false" name="`workweek_id`"/>
</many-to-one>
<property name="machineId" type="java.lang.String" lazy="false" column="`machineid`" not-null="false" unique="false"/>
<property name="machineSearchString" type="java.lang.String" lazy="false" column="`machinesearchstring`" not-null="false" unique="false"/>
<property name="multiplicity" type="int" lazy="false" column="`multiplicity`" not-null="false" unique="false"/>
<property name="taskSearchString" type="java.lang.String" lazy="false" column="`tasksearchstring`" not-null="false" unique="false"/>
</class>
<class entity-name="MachineList" abstract="false" lazy="false" discriminator-value="MachineList" table="`machinelist`">
<id type="long">
<generator class="native"/>
</id>
<discriminator column="`dtype`" type="string"/>
<version name="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler "/>
<list name="machines" lazy="true" cascade="all,delete-orphan">
<key update="true">
<column name="`machines_id`" not-null="false" unique="false"/>
</key>
<list-index column="`machinelist_machines_idx`"/>
<one-to-many entity-name="Machine"/>
</list>
</class>
<class entity-name="Production" abstract="false" lazy="false" discriminator-value="Production" table="`production`">
<id type="long">
<generator class="native"/>
</id>
<discriminator column="`dtype`" type="string"/>
<version name="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler "/>
<property name="article" type="java.lang.String" lazy="false" column="`article`" not-null="false" unique="false"/>
<property name="dueTime" type="serializable" lazy="false" column="`duetime`" not-null="false" unique="false"/>
<property name="missingAmount" type="float" lazy="false" column="`missingamount`" not-null="false" unique="false"/>
<property name="productionId" type="java.lang.String" lazy="false" column="`productionid`" not-null="false" unique="false"/>
<property name="startTime" type="serializable" lazy="false" column="`starttime`" not-null="false" unique="false"/>
<property name="totalAmount" type="float" lazy="false" column="`totalamount`" not-null="false" unique="false"/>
</class>
<class entity-name="Task" abstract="false" lazy="false" discriminator-value="Task" table="`task`">
<id type="long">
<generator class="native"/>
</id>
<discriminator column="`dtype`" type="string"/>
<version name="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler "/>
<many-to-one name="capacityEntry" entity-name="CapacityEntry" cascade="all" lazy="false" insert="true" update="true" not-null="true">
<column not-null="true" unique="false" name="`capacityentry_id`"/>
</many-to-one>
<many-to-one name="production" entity-name="Production" cascade="all" lazy="false" insert="true" update="true" not-null="true">
<column not-null="true" unique="false" name="`production_id`"/>
</many-to-one>
<property name="name" type="java.lang.String" lazy="false" column="`name`" not-null="false" unique="false"/>
<property name="taskId" type="java.lang.String" lazy="false" column="`taskid`" not-null="false" unique="false"/>
<property name="timePerPice" type="float" lazy="false" column="`timeperpice`" not-null="false" unique="false"/>
<property name="timePerPreperation" type="float" lazy="false" column="`timeperpreperation`" not-null="false" unique="false"/>
</class>
<class entity-name="WorkDay" abstract="false" lazy="false" discriminator-value="WorkDay" table="`workday`">
<id type="long">
<generator class="native"/>
</id>
<discriminator column="`dtype`" type="string"/>
<version name="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler "/>
<property name="dayOfWeek" type="int" lazy="false" column="`dayofweek`" not-null="false" unique="false"/>
<property name="duration" type="int" lazy="false" column="`duration`" not-null="false" unique="false"/>
<property name="startTime" type="int" lazy="false" column="`starttime`" not-null="false" unique="false"/>
</class>
<class entity-name="WorkWeek" abstract="false" lazy="false" discriminator-value="WorkWeek" table="`workweek`">
<id type="long">
<generator class="native"/>
</id>
<discriminator column="`dtype`" type="string"/>
<version name="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler "/>
<list name="days" lazy="true" cascade="all,delete-orphan">
<key update="true">
<column name="`days_id`" not-null="false" unique="false"/>
</key>
<list-index column="`workweek_days_idx`"/>
<one-to-many entity-name="WorkDay"/>
</list>
<property name="workWeekId" type="java.lang.String" lazy="false" column="`workweekid`" not-null="false" unique="false"/>
</class>
</hibernate-mapping>


--------------050507070701040006060208--
Re: Plugin Dependencies [message #583183 is a reply to message #41054] Wed, 26 July 2006 03:42 Go to previous message
Eclipse UserFriend
Hi Joachim,
Mapping file looks fine (after a quick look).
Can you also upload the ecore or xsd? Then I can try to replicate this on my side.

gr. Martin

Joachim Rosskopf wrote:
> Hey Martin,
>
> sorry to reach by email, was a mistake.
> Attached the mapping XML
>
> Regards
> ---
> Joachim
>
> Martin Taal wrote:
>> Hi Joachim,
>> Can you upload/send the mapping file? Can be retrieved from the
>> HbDataStore with getMappingXML.
>>
>> gr. Martin
>
> ------------------------------------------------------------ ------------
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
>
> <!-- Generated by Elver Store tools on Wed Jul 26 09:30:50 CEST 2006 -->
> <hibernate-mapping>
> <class entity-name="CapacityEntry" abstract="false" lazy="false" discriminator-value="CapacityEntry" table="`capacityentry`">
> <id type="long">
> <generator class="native"/>
> </id>
> <discriminator column="`dtype`" type="string"/>
> <version name="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler "/>
> <property name="capacityEntryId" type="java.lang.String" lazy="false" column="`capacityentryid`" not-null="false" unique="false"/>
> <property name="name" type="java.lang.String" lazy="false" column="`name`" not-null="false" unique="false"/>
> </class>
> <class entity-name="Machine" abstract="false" lazy="false" discriminator-value="Machine" table="`machine`">
> <id type="long">
> <generator class="native"/>
> </id>
> <discriminator column="`dtype`" type="string"/>
> <version name="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler "/>
> <many-to-one name="workWeek" entity-name="WorkWeek" cascade="all" lazy="false" insert="true" update="true" not-null="true">
> <column not-null="true" unique="false" name="`workweek_id`"/>
> </many-to-one>
> <property name="machineId" type="java.lang.String" lazy="false" column="`machineid`" not-null="false" unique="false"/>
> <property name="machineSearchString" type="java.lang.String" lazy="false" column="`machinesearchstring`" not-null="false" unique="false"/>
> <property name="multiplicity" type="int" lazy="false" column="`multiplicity`" not-null="false" unique="false"/>
> <property name="taskSearchString" type="java.lang.String" lazy="false" column="`tasksearchstring`" not-null="false" unique="false"/>
> </class>
> <class entity-name="MachineList" abstract="false" lazy="false" discriminator-value="MachineList" table="`machinelist`">
> <id type="long">
> <generator class="native"/>
> </id>
> <discriminator column="`dtype`" type="string"/>
> <version name="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler "/>
> <list name="machines" lazy="true" cascade="all,delete-orphan">
> <key update="true">
> <column name="`machines_id`" not-null="false" unique="false"/>
> </key>
> <list-index column="`machinelist_machines_idx`"/>
> <one-to-many entity-name="Machine"/>
> </list>
> </class>
> <class entity-name="Production" abstract="false" lazy="false" discriminator-value="Production" table="`production`">
> <id type="long">
> <generator class="native"/>
> </id>
> <discriminator column="`dtype`" type="string"/>
> <version name="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler "/>
> <property name="article" type="java.lang.String" lazy="false" column="`article`" not-null="false" unique="false"/>
> <property name="dueTime" type="serializable" lazy="false" column="`duetime`" not-null="false" unique="false"/>
> <property name="missingAmount" type="float" lazy="false" column="`missingamount`" not-null="false" unique="false"/>
> <property name="productionId" type="java.lang.String" lazy="false" column="`productionid`" not-null="false" unique="false"/>
> <property name="startTime" type="serializable" lazy="false" column="`starttime`" not-null="false" unique="false"/>
> <property name="totalAmount" type="float" lazy="false" column="`totalamount`" not-null="false" unique="false"/>
> </class>
> <class entity-name="Task" abstract="false" lazy="false" discriminator-value="Task" table="`task`">
> <id type="long">
> <generator class="native"/>
> </id>
> <discriminator column="`dtype`" type="string"/>
> <version name="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler "/>
> <many-to-one name="capacityEntry" entity-name="CapacityEntry" cascade="all" lazy="false" insert="true" update="true" not-null="true">
> <column not-null="true" unique="false" name="`capacityentry_id`"/>
> </many-to-one>
> <many-to-one name="production" entity-name="Production" cascade="all" lazy="false" insert="true" update="true" not-null="true">
> <column not-null="true" unique="false" name="`production_id`"/>
> </many-to-one>
> <property name="name" type="java.lang.String" lazy="false" column="`name`" not-null="false" unique="false"/>
> <property name="taskId" type="java.lang.String" lazy="false" column="`taskid`" not-null="false" unique="false"/>
> <property name="timePerPice" type="float" lazy="false" column="`timeperpice`" not-null="false" unique="false"/>
> <property name="timePerPreperation" type="float" lazy="false" column="`timeperpreperation`" not-null="false" unique="false"/>
> </class>
> <class entity-name="WorkDay" abstract="false" lazy="false" discriminator-value="WorkDay" table="`workday`">
> <id type="long">
> <generator class="native"/>
> </id>
> <discriminator column="`dtype`" type="string"/>
> <version name="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler "/>
> <property name="dayOfWeek" type="int" lazy="false" column="`dayofweek`" not-null="false" unique="false"/>
> <property name="duration" type="int" lazy="false" column="`duration`" not-null="false" unique="false"/>
> <property name="startTime" type="int" lazy="false" column="`starttime`" not-null="false" unique="false"/>
> </class>
> <class entity-name="WorkWeek" abstract="false" lazy="false" discriminator-value="WorkWeek" table="`workweek`">
> <id type="long">
> <generator class="native"/>
> </id>
> <discriminator column="`dtype`" type="string"/>
> <version name="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler "/>
> <list name="days" lazy="true" cascade="all,delete-orphan">
> <key update="true">
> <column name="`days_id`" not-null="false" unique="false"/>
> </key>
> <list-index column="`workweek_days_idx`"/>
> <one-to-many entity-name="WorkDay"/>
> </list>
> <property name="workWeekId" type="java.lang.String" lazy="false" column="`workweekid`" not-null="false" unique="false"/>
> </class>
> </hibernate-mapping>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
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
Re: Plugin Dependencies [message #583217 is a reply to message #41085] Wed, 26 July 2006 03:47 Go to previous message
Eclipse UserFriend
Originally posted by: rosskopf.progroup-inc.com

This is a multi-part message in MIME format.
--------------040305020108080908020708
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hello Martin,

so it also did for me.
Here comes the XSD and the generated ecore.

Thank you for the very fast reply.
Regards
---
Joachim

Martin Taal wrote:
> Hi Joachim,
> Mapping file looks fine (after a quick look).
> Can you also upload the ecore or xsd? Then I can try to replicate this
> on my side.
>
> gr. Martin
>

--------------040305020108080908020708
Content-Type: text/xml;
name="capa.xsd"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="capa.xsd"

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:capa="http:///com.lessmann.capa.model/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http:///com.lessmann.capa.model/">



<xsd:complexType name="Machine">
<xsd:sequence maxOccurs="1" minOccurs="1">
<xsd:element name="WorkWeek" type="capa:WorkWeek" maxOccurs="1" minOccurs="1"></xsd:element>
<xsd:element name="Tasks" type="capa:Task" maxOccurs="unbounded" minOccurs="0">
<xsd:annotation>
<xsd:appinfo source="http://ejb.elver.org/Transient">true</xsd:appinfo>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="MachineId" type="xsd:string"></xsd:attribute>
<xsd:attribute name="MachineSearchString" type="xsd:string"></xsd:attribute>
<xsd:attribute name="TaskSearchString" type="xsd:string"></xsd:attribute>
<xsd:attribute name="Multiplicity" type="xsd:int"></xsd:attribute>
</xsd:complexType>


<xsd:complexType name="WorkDay">
<xsd:attribute name="StartTime" type="xsd:int"></xsd:attribute>
<xsd:attribute name="Duration" type="xsd:int"></xsd:attribute>
<xsd:attribute name="DayOfWeek" type="xsd:int"></xsd:attribute>
</xsd:complexType>

<xsd:complexType name="WorkWeek">
<xsd:sequence>
<xsd:element name="Days" type="capa:WorkDay" minOccurs="0" maxOccurs="7"></xsd:element>
</xsd:sequence>
<xsd:attribute name="WorkWeekId" type="xsd:string"></xsd:attribute>
</xsd:complexType>

<xsd:complexType name="Task">
<xsd:sequence>
<xsd:element name="CapacityEntry"
type="capa:CapacityEntry" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element name="Production" type="capa:Production"
maxOccurs="1" minOccurs="1">
</xsd:element>
</xsd:sequence>
<xsd:attribute name="TaskId" type="xsd:string"></xsd:attribute>
<xsd:attribute name="Name" type="xsd:string"></xsd:attribute>
<xsd:attribute name="TimePerPice" type="xsd:float"></xsd:attribute>
<xsd:attribute name="TimePerPreperation" type="xsd:float"></xsd:attribute>
</xsd:complexType>

<xsd:complexType name="CapacityEntry">
<xsd:attribute name="CapacityEntryId" type="xsd:string"></xsd:attribute>
<xsd:attribute name="Name" type="xsd:string"></xsd:attribute>
</xsd:complexType>

<xsd:complexType name="Production">
<xsd:attribute name="ProductionId" type="xsd:string"></xsd:attribute>
<xsd:attribute name="Article" type="xsd:string"></xsd:attribute>
<xsd:attribute name="TotalAmount" type="xsd:float"></xsd:attribute>
<xsd:attribute name="MissingAmount" type="xsd:float"></xsd:attribute>
<xsd:attribute name="StartTime" type="xsd:date"></xsd:attribute>
<xsd:attribute name="DueTime" type="xsd:date"></xsd:attribute>
</xsd:complexType>

<xsd:complexType name="MachineList">
<xsd:sequence>
<xsd:element name="Machines" type="capa:Machine" maxOccurs="unbounded" minOccurs="0"></xsd:element>
</xsd:sequence></xsd:complexType>
</xsd:schema>

--------------040305020108080908020708
Content-Type: text/xml;
name="model.ecore"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="model.ecore"

<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="model"
nsURI="http:///com.lessmann.capa.model/" nsPrefix="model">
<eClassifiers xsi:type="ecore:EClass" name="CapacityEntry">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="CapacityEntry"/>
<details key="kind" value="empty"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="capacityEntryId" unique="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="CapacityEntryId"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" unique="false" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="Name"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Machine">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="Machine"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="workWeek" lowerBound="1"
eType="#//WorkWeek" containment="true" resolveProxies="false">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="WorkWeek"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="tasks" upperBound="-1"
eType="#//Task" containment="true" resolveProxies="false">
<eAnnotations source="http://ejb.elver.org/Transient">
<details key="appinfo" value="true"/>
</eAnnotations>
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="Tasks"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="machineId" unique="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="MachineId"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="machineSearchString" unique="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="MachineSearchString"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="multiplicity" unique="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Int" unsettable="true">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="Multiplicity"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="taskSearchString" unique="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="TaskSearchString"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="MachineList">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="MachineList"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="machines" upperBound="-1"
eType="#//Machine" containment="true" resolveProxies="false">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="Machines"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Production">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="Production"/>
<details key="kind" value="empty"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="article" unique="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="Article"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="dueTime" unique="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Date">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="DueTime"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="missingAmount" unique="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Float" unsettable="true">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="MissingAmount"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="productionId" unique="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="ProductionId"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="startTime" unique="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Date">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="StartTime"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="totalAmount" unique="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Float" unsettable="true">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="TotalAmount"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Task">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="Task"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="capacityEntry" lowerBound="1"
eType="#//CapacityEntry" containment="true" resolveProxies="false">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="CapacityEntry"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="production" lowerBound="1"
eType="#//Production" containment="true" resolveProxies="false">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="Production"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" unique="false" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="Name"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="taskId" unique="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="TaskId"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="timePerPice" unique="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Float" unsettable="true">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="TimePerPice"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="timePerPreperation" unique="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Float" unsettable="true">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="TimePerPreperation"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="WorkDay">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="WorkDay"/>
<details key="kind" value="empty"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="dayOfWeek" unique="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Int" unsettable="true">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="DayOfWeek"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="duration" unique="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Int" unsettable="true">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="Duration"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="startTime" unique="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Int" unsettable="true">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="StartTime"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="WorkWeek">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="WorkWeek"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="days" upperBound="7" eType="#//WorkDay"
containment="true" resolveProxies="false">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="Days"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="workWeekId" unique="false"
eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="WorkWeekId"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
</ecore:EPackage>

--------------040305020108080908020708
Content-Type: text/xml;
name="capa.genmodel"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="capa.genmodel"

<?xml version="1.0" encoding="UTF-8"?>
<genmodel:GenModel xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/com.lessmann.capa.model/src"
modelPluginID="com.lessmann.capa.model" modelName="Capa" rootExtendsInterface=""
rootExtendsClass="org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl " rootImplementsInterface="org.eclipse.emf.ecore.sdo.InternalEDataObject "
suppressEMFTypes="true" suppressEMFMetaData="true" featureMapWrapperInterface="commonj.sdo.Sequence"
featureMapWrapperInternalInterface="org.eclipse.emf.ecore.sdo.util.ESequence "
featureMapWrapperClass="org.eclipse.emf.ecore.sdo.util.BasicESequence " richClientPlatform="true"
codeFormatting="true" importerID="org.eclipse.xsd.ecore.importer" containmentProxies="true"
minimalReflectiveMethods="false">
<foreignModel>capa.xsd</foreignModel>
<staticPackages>http://www.eclipse.org/emf/2003/SDO</staticPackages>
<modelPluginVariables>EMF_COMMONJ_SDO=org.eclipse.emf.commonj.sdo </modelPluginVariables>
<modelPluginVariables>EMF_ECORE_SDO=org.eclipse.emf.ecore.sdo </modelPluginVariables>
<genPackages prefix="Model" basePackage="com.lessmann.capa" resource="XML" disposableProviderFactory="true"
ecorePackage="model.ecore#/">
<genClasses ecoreClass="model.ecore#//CapacityEntry">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//CapacityEntry/capacityEntryId"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//CapacityEntry/name"/>
</genClasses>
<genClasses ecoreClass="model.ecore#//Machine">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference model.ecore#//Machine/workWeek"/>
<genFeatures property="Readonly" children="true" createChild="true" propertyMultiLine="true"
propertySortChoices="true" ecoreFeature="ecore:EReference model.ecore#//Machine/tasks"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Machine/machineId"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Machine/machineSearchString"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Machine/multiplicity"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Machine/taskSearchString"/>
</genClasses>
<genClasses ecoreClass="model.ecore#//MachineList">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference model.ecore#//MachineList/machines"/>
</genClasses>
<genClasses ecoreClass="model.ecore#//Production">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Production/article"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Production/dueTime"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Production/missingAmount"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Production/productionId"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Production/startTime"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Production/totalAmount"/>
</genClasses>
<genClasses ecoreClass="model.ecore#//Task">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference model.ecore#//Task/capacityEntry"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference model.ecore#//Task/production"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Task/name"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Task/taskId"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Task/timePerPice"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Task/timePerPreperation"/>
</genClasses>
<genClasses ecoreClass="model.ecore#//WorkDay">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//WorkDay/dayOfWeek"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//WorkDay/duration"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//WorkDay/startTime"/>
</genClasses>
<genClasses ecoreClass="model.ecore#//WorkWeek">
<genFeatures createChild="false" ecoreFeature="ecore:EReference model.ecore#//WorkWeek/days"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//WorkWeek/workWeekId"/>
</genClasses>
</genPackages>
</genmodel:GenModel>

--------------040305020108080908020708--
Re: Plugin Dependencies [message #583269 is a reply to message #41147] Wed, 26 July 2006 05:05 Go to previous message
Eclipse UserFriend
Hi Joachim,
I tested it and it works fine for me (get 2 machines in the db). Just need to ask but is this if
statement correct:
if (machine != null)

is this true? or should it be:
if (machines != null)

gr. Martin

Joachim Rosskopf wrote:
> Hello Martin,
>
> so it also did for me.
> Here comes the XSD and the generated ecore.
>
> Thank you for the very fast reply.
> Regards
> ---
> Joachim
>
> Martin Taal wrote:
>> Hi Joachim,
>> Mapping file looks fine (after a quick look).
>> Can you also upload the ecore or xsd? Then I can try to replicate this
>> on my side.
>>
>> gr. Martin
>>
>
> ------------------------------------------------------------ ------------
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xsd:schema xmlns:capa="http:///com.lessmann.capa.model/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http:///com.lessmann.capa.model/">
>
>
>
> <xsd:complexType name="Machine">
> <xsd:sequence maxOccurs="1" minOccurs="1">
> <xsd:element name="WorkWeek" type="capa:WorkWeek" maxOccurs="1" minOccurs="1"></xsd:element>
> <xsd:element name="Tasks" type="capa:Task" maxOccurs="unbounded" minOccurs="0">
> <xsd:annotation>
> <xsd:appinfo source="http://ejb.elver.org/Transient">true</xsd:appinfo>
> </xsd:annotation>
> </xsd:element>
> </xsd:sequence>
> <xsd:attribute name="MachineId" type="xsd:string"></xsd:attribute>
> <xsd:attribute name="MachineSearchString" type="xsd:string"></xsd:attribute>
> <xsd:attribute name="TaskSearchString" type="xsd:string"></xsd:attribute>
> <xsd:attribute name="Multiplicity" type="xsd:int"></xsd:attribute>
> </xsd:complexType>
>
>
> <xsd:complexType name="WorkDay">
> <xsd:attribute name="StartTime" type="xsd:int"></xsd:attribute>
> <xsd:attribute name="Duration" type="xsd:int"></xsd:attribute>
> <xsd:attribute name="DayOfWeek" type="xsd:int"></xsd:attribute>
> </xsd:complexType>
>
> <xsd:complexType name="WorkWeek">
> <xsd:sequence>
> <xsd:element name="Days" type="capa:WorkDay" minOccurs="0" maxOccurs="7"></xsd:element>
> </xsd:sequence>
> <xsd:attribute name="WorkWeekId" type="xsd:string"></xsd:attribute>
> </xsd:complexType>
>
> <xsd:complexType name="Task">
> <xsd:sequence>
> <xsd:element name="CapacityEntry"
> type="capa:CapacityEntry" minOccurs="1" maxOccurs="1">
> </xsd:element>
> <xsd:element name="Production" type="capa:Production"
> maxOccurs="1" minOccurs="1">
> </xsd:element>
> </xsd:sequence>
> <xsd:attribute name="TaskId" type="xsd:string"></xsd:attribute>
> <xsd:attribute name="Name" type="xsd:string"></xsd:attribute>
> <xsd:attribute name="TimePerPice" type="xsd:float"></xsd:attribute>
> <xsd:attribute name="TimePerPreperation" type="xsd:float"></xsd:attribute>
> </xsd:complexType>
>
> <xsd:complexType name="CapacityEntry">
> <xsd:attribute name="CapacityEntryId" type="xsd:string"></xsd:attribute>
> <xsd:attribute name="Name" type="xsd:string"></xsd:attribute>
> </xsd:complexType>
>
> <xsd:complexType name="Production">
> <xsd:attribute name="ProductionId" type="xsd:string"></xsd:attribute>
> <xsd:attribute name="Article" type="xsd:string"></xsd:attribute>
> <xsd:attribute name="TotalAmount" type="xsd:float"></xsd:attribute>
> <xsd:attribute name="MissingAmount" type="xsd:float"></xsd:attribute>
> <xsd:attribute name="StartTime" type="xsd:date"></xsd:attribute>
> <xsd:attribute name="DueTime" type="xsd:date"></xsd:attribute>
> </xsd:complexType>
>
> <xsd:complexType name="MachineList">
> <xsd:sequence>
> <xsd:element name="Machines" type="capa:Machine" maxOccurs="unbounded" minOccurs="0"></xsd:element>
> </xsd:sequence></xsd:complexType>
> </xsd:schema>
>
>
> ------------------------------------------------------------ ------------
>
> <?xml version="1.0" encoding="UTF-8"?>
> <ecore:EPackage xmi:version="2.0"
> xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="model"
> nsURI="http:///com.lessmann.capa.model/" nsPrefix="model">
> <eClassifiers xsi:type="ecore:EClass" name="CapacityEntry">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="name" value="CapacityEntry"/>
> <details key="kind" value="empty"/>
> </eAnnotations>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="capacityEntryId" unique="false"
> eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="CapacityEntryId"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" unique="false" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="Name"/>
> </eAnnotations>
> </eStructuralFeatures>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="Machine">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="name" value="Machine"/>
> <details key="kind" value="elementOnly"/>
> </eAnnotations>
> <eStructuralFeatures xsi:type="ecore:EReference" name="workWeek" lowerBound="1"
> eType="#//WorkWeek" containment="true" resolveProxies="false">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="WorkWeek"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EReference" name="tasks" upperBound="-1"
> eType="#//Task" containment="true" resolveProxies="false">
> <eAnnotations source="http://ejb.elver.org/Transient">
> <details key="appinfo" value="true"/>
> </eAnnotations>
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="Tasks"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="machineId" unique="false"
> eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="MachineId"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="machineSearchString" unique="false"
> eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="MachineSearchString"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="multiplicity" unique="false"
> eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Int" unsettable="true">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="Multiplicity"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="taskSearchString" unique="false"
> eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="TaskSearchString"/>
> </eAnnotations>
> </eStructuralFeatures>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="MachineList">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="name" value="MachineList"/>
> <details key="kind" value="elementOnly"/>
> </eAnnotations>
> <eStructuralFeatures xsi:type="ecore:EReference" name="machines" upperBound="-1"
> eType="#//Machine" containment="true" resolveProxies="false">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="Machines"/>
> </eAnnotations>
> </eStructuralFeatures>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="Production">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="name" value="Production"/>
> <details key="kind" value="empty"/>
> </eAnnotations>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="article" unique="false"
> eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="Article"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="dueTime" unique="false"
> eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Date">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="DueTime"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="missingAmount" unique="false"
> eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Float" unsettable="true">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="MissingAmount"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="productionId" unique="false"
> eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="ProductionId"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="startTime" unique="false"
> eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Date">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="StartTime"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="totalAmount" unique="false"
> eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Float" unsettable="true">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="TotalAmount"/>
> </eAnnotations>
> </eStructuralFeatures>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="Task">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="name" value="Task"/>
> <details key="kind" value="elementOnly"/>
> </eAnnotations>
> <eStructuralFeatures xsi:type="ecore:EReference" name="capacityEntry" lowerBound="1"
> eType="#//CapacityEntry" containment="true" resolveProxies="false">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="CapacityEntry"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EReference" name="production" lowerBound="1"
> eType="#//Production" containment="true" resolveProxies="false">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="Production"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" unique="false" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="Name"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="taskId" unique="false"
> eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="TaskId"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="timePerPice" unique="false"
> eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Float" unsettable="true">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="TimePerPice"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="timePerPreperation" unique="false"
> eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Float" unsettable="true">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="TimePerPreperation"/>
> </eAnnotations>
> </eStructuralFeatures>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="WorkDay">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="name" value="WorkDay"/>
> <details key="kind" value="empty"/>
> </eAnnotations>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="dayOfWeek" unique="false"
> eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Int" unsettable="true">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="DayOfWeek"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="duration" unique="false"
> eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Int" unsettable="true">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="Duration"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="startTime" unique="false"
> eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Int" unsettable="true">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="StartTime"/>
> </eAnnotations>
> </eStructuralFeatures>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="WorkWeek">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="name" value="WorkWeek"/>
> <details key="kind" value="elementOnly"/>
> </eAnnotations>
> <eStructuralFeatures xsi:type="ecore:EReference" name="days" upperBound="7" eType="#//WorkDay"
> containment="true" resolveProxies="false">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="Days"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="workWeekId" unique="false"
> eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
> <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="WorkWeekId"/>
> </eAnnotations>
> </eStructuralFeatures>
> </eClassifiers>
> </ecore:EPackage>
>
>
> ------------------------------------------------------------ ------------
>
> <?xml version="1.0" encoding="UTF-8"?>
> <genmodel:GenModel xmi:version="2.0"
> xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
> xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/com.lessmann.capa.model/src"
> modelPluginID="com.lessmann.capa.model" modelName="Capa" rootExtendsInterface=""
> rootExtendsClass="org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl " rootImplementsInterface="org.eclipse.emf.ecore.sdo.InternalEDataObject "
> suppressEMFTypes="true" suppressEMFMetaData="true" featureMapWrapperInterface="commonj.sdo.Sequence"
> featureMapWrapperInternalInterface="org.eclipse.emf.ecore.sdo.util.ESequence "
> featureMapWrapperClass="org.eclipse.emf.ecore.sdo.util.BasicESequence " richClientPlatform="true"
> codeFormatting="true" importerID="org.eclipse.xsd.ecore.importer" containmentProxies="true"
> minimalReflectiveMethods="false">
> <foreignModel>capa.xsd</foreignModel>
> <staticPackages>http://www.eclipse.org/emf/2003/SDO</staticPackages>
> <modelPluginVariables>EMF_COMMONJ_SDO=org.eclipse.emf.commonj.sdo </modelPluginVariables>
> <modelPluginVariables>EMF_ECORE_SDO=org.eclipse.emf.ecore.sdo </modelPluginVariables>
> <genPackages prefix="Model" basePackage="com.lessmann.capa" resource="XML" disposableProviderFactory="true"
> ecorePackage="model.ecore#/">
> <genClasses ecoreClass="model.ecore#//CapacityEntry">
> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//CapacityEntry/capacityEntryId"/>
> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//CapacityEntry/name"/>
> </genClasses>
> <genClasses ecoreClass="model.ecore#//Machine">
> <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference model.ecore#//Machine/workWeek"/>
> <genFeatures property="Readonly" children="true" createChild="true" propertyMultiLine="true"
> propertySortChoices="true" ecoreFeature="ecore:EReference model.ecore#//Machine/tasks"/>
> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Machine/machineId"/>
> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Machine/machineSearchString"/>
> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Machine/multiplicity"/>
> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Machine/taskSearchString"/>
> </genClasses>
> <genClasses ecoreClass="model.ecore#//MachineList">
> <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference model.ecore#//MachineList/machines"/>
> </genClasses>
> <genClasses ecoreClass="model.ecore#//Production">
> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Production/article"/>
> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Production/dueTime"/>
> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Production/missingAmount"/>
> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Production/productionId"/>
> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Production/startTime"/>
> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Production/totalAmount"/>
> </genClasses>
> <genClasses ecoreClass="model.ecore#//Task">
> <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference model.ecore#//Task/capacityEntry"/>
> <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference model.ecore#//Task/production"/>
> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Task/name"/>
> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Task/taskId"/>
> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Task/timePerPice"/>
> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//Task/timePerPreperation"/>
> </genClasses>
> <genClasses ecoreClass="model.ecore#//WorkDay">
> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//WorkDay/dayOfWeek"/>
> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//WorkDay/duration"/>
> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//WorkDay/startTime"/>
> </genClasses>
> <genClasses ecoreClass="model.ecore#//WorkWeek">
> <genFeatures createChild="false" ecoreFeature="ecore:EReference model.ecore#//WorkWeek/days"/>
> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model.ecore#//WorkWeek/workWeekId"/>
> </genClasses>
> </genPackages>
> </genmodel:GenModel>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
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
Re: Plugin Dependencies [message #583737 is a reply to message #41244] Fri, 28 July 2006 00:39 Go to previous message
Eclipse UserFriend
Originally posted by: rosskopf.progroup-inc.com

This is a multi-part message in MIME format.
--------------050203060307090008070803
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Hello Martin,

would you like to help me another time.
I can
Re: Plugin Dependencies [message #583771 is a reply to message #42121] Fri, 28 July 2006 02:25 Go to previous message
Eclipse UserFriend
This is a multi-part message in MIME format.
--------------090108020801060009030906
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Hi Joachim,
You mean the addMachine doesn't work? When you debug through it does it run correctly through this
method? But the machine does not get added in the db?

Can you post the log? If you stop just after the commit in addMachine then that would be best probably.

I have attached a log4j.properties which you can use, change every word error in debug and you would
get the most info.

gr. Martin

Joachim Rosskopf wrote:
> Hello Martin,
>
> would you like to help me another time.
> I can
Re: Plugin Dependencies [message #584352 is a reply to message #42186] Wed, 02 August 2006 09:31 Go to previous message
Eclipse UserFriend
Originally posted by: rosskopf.progroup-inc.com

This is a multi-part message in MIME format.
--------------060305070809030905090607
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Hello Martin,

addMachine doesn
Re: Plugin Dependencies [message #584400 is a reply to message #43291] Thu, 03 August 2006 05:37 Go to previous message
Eclipse UserFriend
Hi Joachim,
I did my best to reproduce this issue and the I accomplished this by reusing the elist instance
stored in a WorkWeek days member in another WorkWeek (this is not allowed). Is this something you
are doing?

Another question I had is if it is okay if I add your model as a testcase to Teneo?

Btw, I am on holiday so I don't check my email on a daily basis. So it can take a few days before I
can react.

gr. Martin

Joachim Rosskopf wrote:
> Hello Martin,
>
> addMachine doesn´t work! The call session.getTransaction().commit();
> Throws a HibernateException.
>
> Attached you get the log of the complete session, with exactly one
> machine in the list.
>
> Thank you in advance.
> Regards
> ---
> Joachim
>
> Martin Taal wrote:
>> Hi Joachim,
>> You mean the addMachine doesn't work? When you debug through it does
>> it run correctly through this method? But the machine does not get
>> added in the db?
>>
>> Can you post the log? If you stop just after the commit in addMachine
>> then that would be best probably.
>>
>> I have attached a log4j.properties which you can use, change every
>> word error in debug and you would get the most info.
>>
>> gr. Martin
>>
>> Joachim Rosskopf wrote:
>>> Hello Martin,
>>>
>>> would you like to help me another time.
>>> I can´t find my mistake. Put it´s probably my mediator code.
>>> I´ll attach it, and if you have some minutes it would be very nice if
>>> you have an eye on it.
>>>
>>> Thank you in advance!
>>> Regards
>>> ---
>>> Joachim
>>>
>>> Martin Taal wrote:
>>>> Hi Joachim,
>>>> I tested it and it works fine for me (get 2 machines in the db).
>>>> Just need to ask but is this if statement correct:
>>>> if (machine != null)
>>>>
>>>> is this true? or should it be:
>>>> if (machines != null)
>>>>
>>>> gr. Martin
>>>>
>>>> Joachim Rosskopf wrote:
>>>
>>> ------------------------------------------------------------ ------------
>>>
>>> package com.lessmann.capa.model.util;
>>>
>>> import org.apache.commons.logging.Log;
>>> import org.apache.commons.logging.LogFactory;
>>> import org.eclipse.emf.ecore.EPackage;
>>> import org.eclipse.emf.teneo.hibernate.HbDataStore;
>>> import org.eclipse.emf.teneo.hibernate.HbHelper;
>>> import
>>> org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList;
>>> import org.hibernate.Query;
>>> import org.hibernate.Session;
>>> import org.hibernate.SessionFactory;
>>>
>>> import java.io.IOException;
>>> import java.net.URL;
>>> import java.sql.PreparedStatement;
>>> import java.sql.ResultSet;
>>> import java.sql.SQLException;
>>> import java.util.ArrayList;
>>> import java.util.List;
>>> import java.util.Properties;
>>>
>>> import com.lessmann.capa.model.Activator;
>>> import com.lessmann.capa.model.CapacityEntry;
>>> import com.lessmann.capa.model.Machine;
>>> import com.lessmann.capa.model.MachineList;
>>> import com.lessmann.capa.model.ModelFactory;
>>> import com.lessmann.capa.model.Production;
>>> import com.lessmann.capa.model.Task;
>>> import com.lessmann.capa.model.WorkWeek;
>>> import com.lessmann.capa.model.impl.ModelPackageImpl;
>>> import com.toolsforjobs.util.misc.PropertyObservableBase;
>>>
>>> public class ModelMediator extends PropertyObservableBase {
>>> public static final ModelMediator INSTANCE = new ModelMediator();
>>> private static Log log = LogFactory.getLog(ModelMediator.class);
>>> protected HbDataStore dataStore;
>>> protected MachineList machines;
>>> private ModelMediator() {
>>> dataStore =
>>> HbHelper.INSTANCE.createRegisterDataStore("ModelDataStore");
>>> dataStore.setEPackages(new EPackage[]
>>> {ModelPackageImpl.eINSTANCE});
>>> }
>>> private class TaskListProxy {
>>> PreparedStatement stmt;
>>> TaskListProxy() {
>>> StringBuilder query = new StringBuilder();
>>> query.append("SELECT DISTINCT aprp.pos,
>>> aprp.prnr, aprk.art, res.rsnr, res.bez1 as res_bez, res.wznr, res.ts,
>>> ");
>>> query.append("res.tr, res.rnr, ress.bez1 as ress_bez,
>>> aprp.ianz, aprp.anz, aprk.ldat, aprk.dat ");
>>> query.append("FROM res, ress, aprp, aprk WHERE ");
>>> query.append("res.wznr LIKE ? AND ");
>>> query.append("res.bez1 LIKE ? AND ");
>>> query.append("res.ts > 0.0 AND ");
>>> query.append("ress.rsnr = res.rnr AND ");
>>> query.append("aprp.ianz > 0.0 AND ");
>>> query.append("aprp.snr_res = res.rsnr AND ");
>>> query.append("aprk.prnr = aprp.prnr AND ");
>>> query.append("aprk.erl != 1 ");
>>> query.append("ORDER BY res.wznr; ");
>>> Session session =
>>> dataStore.getSessionFactory().openSession();
>>> try {
>>> stmt =
>>> session.connection().prepareStatement(query.toString());
>>> } catch (SQLException sqlex) {
>>> log.error("Unable to build statement for task list
>>> query;", sqlex);
>>> } finally {
>>> session.close();
>>> }
>>> }
>>> List loadTasks(Machine machine) {
>>> if (stmt != null && machine != null) {
>>> try {
>>> List tasks = new ArrayList();
>>> String machiness =
>>> machine.getMachineSearchString().replace('*', '%');
>>> String taskss =
>>> machine.getTaskSearchString().replace('*', '%');
>>> stmt.setString(1, machiness);
>>> stmt.setString(2, taskss);
>>> ResultSet resultset =
>>> stmt.executeQuery();
>>> while (resultset.next()) {
>>> Task task = ModelFactory.INSTANCE.createTask();
>>> task.setTaskId(resultset.getString("rsnr"));
>>> task.setName(resultset.getString("res_bez"));
>>> task.setTimePerPice(resultset.getFloat("ts"));
>>>
>>> task.setTimePerPreperation(resultset.getFloat("tr"));
>>> CapacityEntry cpentry
>>> = ModelFactory.INSTANCE.createCapacityEntry();
>>>
>>> cpentry.setCapacityEntryId(resultset.getString("rnr"));
>>>
>>> cpentry.setName(resultset.getString("ress_bez"));
>>> task.setCapacityEntry(cpentry);
>>> Production production
>>> = ModelFactory.INSTANCE.createProduction();
>>>
>>> production.setProductionId(resultset.getString("prnr"));
>>>
>>> production.setArticle(resultset.getString("art"));
>>> // TODO add parsing of the date here
>>> production.setStartTime(null);
>>> production.setDueTime(null);
>>>
>>> production.setTotalAmount(resultset.getFloat("anz"));
>>>
>>> production.setMissingAmount(resultset.getFloat("ianz"));
>>> task.setProduction(production);
>>> tasks.add(task);
>>> }
>>> resultset.close();
>>> stmt.close();
>>>
>>> firePropertyChange("taskListLoaded", false, true);
>>> return tasks;
>>> } catch (SQLException sqlex) {
>>> log.error("Unable to set arguments in statement
>>> for task list query;", sqlex);
>>> }
>>> }
>>> return new ArrayList<Task>();
>>> }
>>> }
>>> public void initialize() {
>>> if (Activator.getDefault() != null) {
>>> log.debug("Loading properties;");
>>> dataStore.setHibernateProperties(loadHbProperties());
>>> }
>>> log.debug("Initialize dataStore;");
>>> dataStore.initialize();
>>> log.debug("Fetching MachineList ... begin transaction;");
>>> Session session = dataStore.getSessionFactory().openSession();
>>> session.beginTransaction();
>>> try {
>>> Query query = session.createQuery("FROM MachineList");
>>> List list = query.list();
>>> if(list.size() > 0) {
>>> machines = (MachineList)list.get(0);
>>> HibernatePersistableEList elist =
>>> (HibernatePersistableEList)machines.getMachines();
>>> if(!elist.isLoaded()) {
>>> log.debug("Loading peristable elist;");
>>> machines.getMachines().size();
>>> }
>>> } else {
>>> machines = ModelFactory.INSTANCE.createMachineList();
>>> session.saveOrUpdate(machines);
>>> log.debug("No machines in database ... bootstrapping;");
>>> session.update(machines);
>>> }
>>> session.getTransaction().commit();
>>> firePropertyChange("initialized", false, true);
>>> } catch (Exception e) {
>>> session.getTransaction().rollback();
>>> log.error("Unable to initalize MachineList;", e);
>>> } finally { session.close();
>>> }
>>> }
>>> private Properties loadHbProperties() {
>>> Properties properties = new Properties();
>>> URL url =
>>> Activator.getDefault().getBundle().getEntry("hibernate.properties ");
>>> try {
>>> properties.load(url.openStream());
>>> } catch (IOException ioex) {
>>> log.warn("Unable to load hibernate poperties;", ioex);
>>> }
>>> return properties;
>>> }
>>> public MachineList getMachines() {
>>> return machines;
>>> }
>>> public boolean addMachine(Machine machine) {
>>> boolean ret = true;
>>> Session session =
>>> dataStore.getSessionFactory().openSession();
>>> session.beginTransaction();
>>> try {
>>> if (machines != null && machine != null) {
>>> session.update(machines);
>>> machines.getMachines().add(machine);
>>> }
>>> session.getTransaction().commit();
>>> } catch (Exception e) {
>>> log.error("Unable to save machine list;", e);
>>> session.getTransaction().rollback();
>>> } finally { session.close();
>>> }
>>> return ret;
>>> }
>>> public List getTasks(Machine machine) {
>>> return new TaskListProxy().loadTasks(machine);
>>> }
>>> }
>>
>>
>>
>> ------------------------------------------------------------ ------------
>>
>> # Set root logger level to error and its only appender to A1.
>> log4j.rootCategory=error, A1
>>
>> # A1 is set to be a ConsoleAppender.
>> log4j.appender.A1=org.apache.log4j.ConsoleAppender
>>
>> # A1 uses PatternLayout.
>> log4j.appender.A1.layout=org.apache.log4j.PatternLayout
>> log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
>>
>> #log4j.logger.org.hibernate=error
>> log4j.logger.org.hibernate=error
>> #org.hibernate.pretty
>>
>> log4j.logger.org.hibernate.tool.hbm2ddl=error
>>
>> ### log HQL query parser activity
>> log4j.logger.org.hibernate.hql.ast.AST=error
>>
>> ### log just the SQL
>> log4j.logger.org.hibernate.SQL=error
>>
>> ### log JDBC bind parameters ###
>> log4j.logger.org.hibernate.type=error
>> #log4j.logger.org.hibernate.type=error
>>
>> ### log schema export/update ###
>> log4j.logger.org.hibernate.tool.hbm2ddl=error
>>
>> ### log HQL parse trees
>> log4j.logger.org.hibernate.hql=error
>>
>> ### log cache activity ###
>> log4j.logger.org.hibernate.cache=error
>>
>> ### log transaction activity
>> log4j.logger.org.hibernate.transaction=error
>>
>> ### log JDBC resource acquisition
>> log4j.logger.org.hibernate.jdbc=error
>>
>> ### enable the following line if you want to track down connection ###
>> ### leakages when using DriverManagerConnectionProvider ###
>> log4j.logger.org.hibernate.connection.DriverManagerConnectio nProvider=error
>>
>
>
> ------------------------------------------------------------ ------------
>
> 0 [main] INFO org.eclipse.emf.teneo.hibernate.HbHelper - Creating emf data store and registering it under name: ModelDataStore
> 500 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore - Initializing protocol/extension for hibernate
> 515 [main] INFO org.eclipse.emf.teneo.hibernate.HbHelper - Returning created emf data store, initialize this newly created data store!
> 844 [main] DEBUG com.lessmann.capa.model.util.ModelMediator - Loading properties;
> 844 [main] DEBUG com.lessmann.capa.model.util.ModelMediator - Initialize dataStore;
> 844 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore - >>>>> Creating HB Configuration
> log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
> log4j:WARN Please initialize the log4j system properly.
> 1328 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore - Generating mapping file from in-mem ecore
> log4j:WARN No appenders could be found for logger (org.eclipse.emf.teneo.mapper.PersistenceMappingBuilderImpl) .
> log4j:WARN Please initialize the log4j system properly.
> 1812 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.HibernateMappingGener ator - Geneting Hibernate mapping for org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl @132b67c
> 1812 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Mapping Entity EClass/CapacityEntry
> 1812 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - No of mappedSuperclasses 0
> 1812 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Creating entity tag class
> 1812 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - DValue CapacityEntry
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Table `capacityentry`
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Processing mapped superclasses, no of mappedsuperclasses: 0
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - processBasic capacityEntryId
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - addProperty capacityEntryId of type java.lang.String
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - processBasic name
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - addProperty name of type java.lang.String
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Mapping Entity EClass/Machine
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - No of mappedSuperclasses 0
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Creating entity tag class
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - DValue Machine
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Table `machine`
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Processing mapped superclasses, no of mappedsuperclasses: 0
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Generating many to one unidirectional mapping for EReference/workWeek
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Process many-to-one EReference/workWeek
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Target WorkWeek
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper - addManyToOne workWeek/WorkWeek
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper - addJoinColumns many-to-one/ no of joincolumns1
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper - JoinColumn workweek_id
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - Skipping transient feature for tasks
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - processBasic capacitySearchString
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - addProperty capacitySearchString of type java.lang.String
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - processBasic machineId
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - addProperty machineId of type java.lang.String
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - processBasic machineSearchString
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - addProperty machineSearchString of type java.lang.String
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - processBasic multiplicity
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - addProperty multiplicity of type int
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - processBasic taskSearchString
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - addProperty taskSearchString of type java.lang.String
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Mapping Entity EClass/MachineList
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - No of mappedSuperclasses 0
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Creating entity tag class
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - DValue MachineList
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Table `machinelist`
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Processing mapped superclasses, no of mappedsuperclasses: 0
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.OneToManyMapper - Generating one to many unidirectional mapping for EReference/machines
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper - Adding key columns
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper - Column machines_id
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper - Add list index MACHINELIST_MACHINES_IDX to machines
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Mapping Entity EClass/Production
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - No of mappedSuperclasses 0
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Creating entity tag class
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - DValue Production
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Table `production`
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Processing mapped superclasses, no of mappedsuperclasses: 0
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - processBasic article
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - addProperty article of type java.lang.String
> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - processBasic dueTime
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - addProperty dueTime of type serializable
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - processBasic missingAmount
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - addProperty missingAmount of type float
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - processBasic productionId
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - addProperty productionId of type java.lang.String
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - processBasic startTime
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - addProperty startTime of type serializable
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - processBasic totalAmount
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - addProperty totalAmount of type float
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Mapping Entity EClass/Task
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - No of mappedSuperclasses 0
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Creating entity tag class
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - DValue Task
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Table `task`
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Processing mapped superclasses, no of mappedsuperclasses: 0
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Generating many to one unidirectional mapping for EReference/capacityEntry
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Process many-to-one EReference/capacityEntry
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Target CapacityEntry
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper - addManyToOne capacityEntry/CapacityEntry
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper - addJoinColumns many-to-one/ no of joincolumns1
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper - JoinColumn capacityentry_id
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Generating many to one unidirectional mapping for EReference/production
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Process many-to-one EReference/production
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Target Production
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper - addManyToOne production/Production
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper - addJoinColumns many-to-one/ no of joincolumns1
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper - JoinColumn production_id
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - processBasic name
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - addProperty name of type java.lang.String
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - processBasic taskId
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - addProperty taskId of type java.lang.String
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - processBasic timePerPice
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - addProperty timePerPice of type float
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - processBasic timePerPreperation
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - addProperty timePerPreperation of type float
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Mapping Entity EClass/WorkDay
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - No of mappedSuperclasses 0
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Creating entity tag class
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - DValue WorkDay
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Table `workday`
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Processing mapped superclasses, no of mappedsuperclasses: 0
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - processBasic dayOfWeek
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - addProperty dayOfWeek of type int
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - processBasic duration
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - addProperty duration of type int
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - processBasic startTime
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - addProperty startTime of type int
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Mapping Entity EClass/WorkWeek
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - No of mappedSuperclasses 0
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Creating entity tag class
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - DValue WorkWeek
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Table `workweek`
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Processing mapped superclasses, no of mappedsuperclasses: 0
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.OneToManyMapper - Generating one to many unidirectional mapping for EReference/days
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper - Adding key columns
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper - Column days_id
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper - Add list index WORKWEEK_DAYS_IDX to days
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - processBasic workWeekId
> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper - addProperty workWeekId of type java.lang.String
> 2812 [main] WARN org.eclipse.emf.teneo.hibernate.HbDataStore - No hibernate cache provider set, using org.hibernate.cache.HashtableCacheProvider
> 2812 [main] WARN org.eclipse.emf.teneo.hibernate.HbDataStore - For production use please set the ehcache (or other) provider explicitly and configure it
> 2812 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore - Setting properties in Hibernate Configuration:
> 2812 [main] INFO org.eclipse.emf.teneo.hibernate.HbDataStore - hibernate.connection.username: pg_pp01
> 2812 [main] INFO org.eclipse.emf.teneo.hibernate.HbDataStore - hibernate.default_schema: public
> 2812 [main] INFO org.eclipse.emf.teneo.hibernate.HbDataStore - hibernate.connection.password: postgress
> 2812 [main] INFO org.eclipse.emf.teneo.hibernate.HbDataStore - hibernate.cache.provider_class: org.hibernate.cache.HashtableCacheProvider
> 2812 [main] INFO org.eclipse.emf.teneo.hibernate.HbDataStore - hibernate.dialect: org.hibernate.dialect.PostgreSQLDialect
> 2812 [main] INFO org.eclipse.emf.teneo.hibernate.HbDataStore - hibernate.connection.url: jdbc:postgresql://localhost:5432/MXDBS
> 2812 [main] INFO org.eclipse.emf.teneo.hibernate.HbDataStore - hibernate.connection.driver_class: org.postgresql.Driver
> 2812 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore - Determine referers for each class
> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore - Adding container mapping for WorkWeek
> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore - Adding eContainer and econtainerfeatureid properties to null
> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore - Adding container mapping for WorkDay
> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore - Adding eContainer and econtainerfeatureid properties to null
> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore - Adding container mapping for Production
> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore - Adding eContainer and econtainerfeatureid properties to null
> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore - Adding container mapping for Machine
> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore - Adding eContainer and econtainerfeatureid properties to null
> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore - Adding container mapping for CapacityEntry
> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore - Adding eContainer and econtainerfeatureid properties to null
> 2844 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore - Starting update of schema
> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore - >>> Update of schema finished
> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore - Registering datastore with persistent classes
> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbHelper - Datastore: ModelDataStore registered for pc: WorkWeek
> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbHelper - Datastore: ModelDataStore registered for pc: WorkDay
> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbHelper - Datastore: ModelDataStore registered for pc: Task
> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbHelper - Datastore: ModelDataStore registered for pc: Production
> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbHelper - Datastore: ModelDataStore registered for pc: MachineList
> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbHelper - Datastore: ModelDataStore registered for pc: Machine
> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbHelper - Datastore: ModelDataStore registered for pc: CapacityEntry
> 4328 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for days/WorkWeek/days
> 4328 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler - Created getter/setter for WorkWeek/days
> 4328 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for days/WorkWeek/days
> 4328 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler - Created getter/setter for WorkWeek/days
> 4328 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for workWeekId/WorkWeek/workWeekId
> 4328 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for WorkWeek/workWeekId
> 4328 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for workWeekId/WorkWeek/workWeekId
> 4328 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for WorkWeek/workWeekId
> 4328 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler - Created eContainer property handler
> 4328 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler - Created eContainer property handler
> 4344 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler - Created eContainerFeatureID handler
> 4344 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler - Created eContainerFeatureID handler
> 4344 [main] DEBUG org.eclipse.emf.teneo.hibernate.tuplizer.EMFInstantiator - Creating eobject instantiator for WorkWeek and eclass WorkWeek
> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for dayOfWeek/WorkDay/dayOfWeek
> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for WorkDay/dayOfWeek
> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for dayOfWeek/WorkDay/dayOfWeek
> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for WorkDay/dayOfWeek
> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for duration/WorkDay/duration
> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for WorkDay/duration
> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for duration/WorkDay/duration
> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for WorkDay/duration
> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for startTime/WorkDay/startTime
> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for WorkDay/startTime
> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for startTime/WorkDay/startTime
> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for WorkDay/startTime
> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler - Created eContainer property handler
> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler - Created eContainer property handler
> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler - Created eContainerFeatureID handler
> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler - Created eContainerFeatureID handler
> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.tuplizer.EMFInstantiator - Creating eobject instantiator for WorkDay and eclass WorkDay
> 4703 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for capacityEntry/Task/capacityEntry
> 4703 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EReferenceP ropertyHandler - Created getter/setter for Task/capacityEntry
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for capacityEntry/Task/capacityEntry
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EReferenceP ropertyHandler - Created getter/setter for Task/capacityEntry
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for production/Task/production
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EReferenceP ropertyHandler - Created getter/setter for Task/production
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for production/Task/production
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EReferenceP ropertyHandler - Created getter/setter for Task/production
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for name/Task/name
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Task/name
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for name/Task/name
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Task/name
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for taskId/Task/taskId
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Task/taskId
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for taskId/Task/taskId
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Task/taskId
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for timePerPice/Task/timePerPice
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Task/timePerPice
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for timePerPice/Task/timePerPice
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Task/timePerPice
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for timePerPreperation/Task/timePerPreperation
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Task/timePerPreperation
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for timePerPreperation/Task/timePerPreperation
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Task/timePerPreperation
> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.tuplizer.EMFInstantiator - Creating eobject instantiator for Task and eclass Task
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for article/Production/article
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Production/article
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for article/Production/article
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Production/article
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for dueTime/Production/dueTime
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Production/dueTime
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for dueTime/Production/dueTime
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Production/dueTime
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for missingAmount/Production/missingAmount
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Production/missingAmount
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for missingAmount/Production/missingAmount
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Production/missingAmount
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for productionId/Production/productionId
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Production/productionId
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for productionId/Production/productionId
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Production/productionId
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for startTime/Production/startTime
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Production/startTime
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for startTime/Production/startTime
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Production/startTime
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for totalAmount/Production/totalAmount
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Production/totalAmount
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for totalAmount/Production/totalAmount
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Production/totalAmount
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler - Created eContainer property handler
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler - Created eContainer property handler
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler - Created eContainerFeatureID handler
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler - Created eContainerFeatureID handler
> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.tuplizer.EMFInstantiator - Creating eobject instantiator for Production and eclass Production
> 4859 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for machines/MachineList/machines
> 4859 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler - Created getter/setter for MachineList/machines
> 4859 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for machines/MachineList/machines
> 4859 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler - Created getter/setter for MachineList/machines
> 4859 [main] DEBUG org.eclipse.emf.teneo.hibernate.tuplizer.EMFInstantiator - Creating eobject instantiator for MachineList and eclass MachineList
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for workWeek/Machine/workWeek
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EReferenceP ropertyHandler - Created getter/setter for Machine/workWeek
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for workWeek/Machine/workWeek
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EReferenceP ropertyHandler - Created getter/setter for Machine/workWeek
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for capacitySearchString/Machine/capacitySearchString
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Machine/capacitySearchString
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for capacitySearchString/Machine/capacitySearchString
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Machine/capacitySearchString
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for machineId/Machine/machineId
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Machine/machineId
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for machineId/Machine/machineId
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Machine/machineId
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for machineSearchString/Machine/machineSearchString
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Machine/machineSearchString
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for machineSearchString/Machine/machineSearchString
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Machine/machineSearchString
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for multiplicity/Machine/multiplicity
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Machine/multiplicity
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for multiplicity/Machine/multiplicity
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Machine/multiplicity
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for taskSearchString/Machine/taskSearchString
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Machine/taskSearchString
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for taskSearchString/Machine/taskSearchString
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for Machine/taskSearchString
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler - Created eContainer property handler
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler - Created eContainer property handler
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler - Created eContainerFeatureID handler
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler - Created eContainerFeatureID handler
> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.tuplizer.EMFInstantiator - Creating eobject instantiator for Machine and eclass Machine
> 5015 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for capacityEntryId/CapacityEntry/capacityEntryId
> 5015 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for CapacityEntry/capacityEntryId
> 5015 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for capacityEntryId/CapacityEntry/capacityEntryId
> 5015 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for CapacityEntry/capacityEntryId
> 5015 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for name/CapacityEntry/name
> 5015 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for CapacityEntry/name
> 5015 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating property accessor for name/CapacityEntry/name
> 5015 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler - Created getter/setter for CapacityEntry/name
> 5015 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler - Created eContainer property handler
> 5015 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler - Created eContainer property handler
> 5015 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler - Created eContainerFeatureID handler
> 5015 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler - Created eContainerFeatureID handler
> 5015 [main] DEBUG org.eclipse.emf.teneo.hibernate.tuplizer.EMFInstantiator - Creating eobject instantiator for CapacityEntry and eclass CapacityEntry
> 5203 [main] DEBUG com.lessmann.capa.model.util.ModelMediator - Fetching MachineList ... begin transaction;
> 5625 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting id: 1 for object com.lessmann.capa.model.impl.MachineListImpl in idcache
> 5640 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting version: 1 for object com.lessmann.capa.model.impl.MachineListImpl in idcache
> 5672 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler - Set value org.hibernate.collection.PersistentList for target com.lessmann.capa.model.impl.MachineListImpl field machines
> 5687 [main] DEBUG com.lessmann.capa.model.util.ModelMediator - Loading peristable elist;
> 5687 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList - Started loading elist EList of type: org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList of member machines owned by com.lessmann.capa.model.impl.MachineListImpl with delegate list org.hibernate.collection.PersistentList
> 5687 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList - EList is not loaded in session context
> 5687 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting id: 3 for object com.lessmann.capa.model.impl.WorkWeekImpl in idcache
> 5703 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting id: 2 for object com.lessmann.capa.model.impl.MachineImpl in idcache
> 5703 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting version: 1 for object com.lessmann.capa.model.impl.MachineImpl in idcache
> 5719 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting version: 1 for object com.lessmann.capa.model.impl.WorkWeekImpl in idcache
> 5719 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler - Set value org.hibernate.collection.PersistentList for target com.lessmann.capa.model.impl.WorkWeekImpl field days
> 5719 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList - Loaded 1 from backend store for EList of type: org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList of member machines owned by com.lessmann.capa.model.impl.MachineListImpl with delegate list org.hibernate.collection.PersistentList
> 5719 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList - Finished loading elist EList of type: org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList of member machines owned by com.lessmann.capa.model.impl.MachineListImpl with delegate list org.hibernate.collection.PersistentList
> 11984 [main] DEBUG com.lessmann.capa.actions.NewMachineAction - run ...
> 60125 [main] DEBUG com.lessmann.capa.wizards.NewMachineWizard - Perform finish for com.lessmann.capa.model.impl.MachineImpl@196a753 (capacitySearchString: <unset>, machineId: m2, machineSearchString: <unset>, multiplicity: <unset>, taskSearchString: <unset>)
> 71562 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting id: 22 for object com.lessmann.capa.model.impl.MachineImpl in idcache
> 71562 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting id: 23 for object com.lessmann.capa.model.impl.WorkWeekImpl in idcache
> 252500 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting id: 24 for object com.lessmann.capa.model.impl.MachineImpl in idcache
> 252515 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting id: 25 for object com.lessmann.capa.model.impl.WorkWeekImpl in idcache
> 252515 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting version: 0 for object com.lessmann.capa.model.impl.WorkWeekImpl in idcache
> 252515 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler - Set value java.util.ArrayList for target com.lessmann.capa.model.impl.WorkWeekImpl field days
> 252515 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting id: 26 for object com.lessmann.capa.model.impl.WorkDayImpl in idcache
> 252531 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting version: 0 for object com.lessmann.capa.model.impl.WorkDayImpl in idcache
> 252531 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting id: 27 for object com.lessmann.capa.model.impl.WorkDayImpl in idcache
> 252531 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting version: 0 for object com.lessmann.capa.model.impl.WorkDayImpl in idcache
> 252531 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting id: 28 for object com.lessmann.capa.model.impl.WorkDayImpl in idcache
> 252531 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting version: 0 for object com.lessmann.capa.model.impl.WorkDayImpl in idcache
> 252531 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting id: 29 for object com.lessmann.capa.model.impl.WorkDayImpl in idcache
> 252531 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting version: 0 for object com.lessmann.capa.model.impl.WorkDayImpl in idcache
> 252547 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting id: 30 for object com.lessmann.capa.model.impl.WorkDayImpl in idcache
> 252547 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting version: 0 for object com.lessmann.capa.model.impl.WorkDayImpl in idcache
> 252547 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting id: 31 for object com.lessmann.capa.model.impl.WorkDayImpl in idcache
> 252547 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting version: 0 for object com.lessmann.capa.model.impl.WorkDayImpl in idcache
> 252547 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting id: 32 for object com.lessmann.capa.model.impl.WorkDayImpl in idcache
> 252547 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting version: 0 for object com.lessmann.capa.model.impl.WorkDayImpl in idcache
> 252547 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler - Setting version: 0 for object com.lessmann.capa.model.impl.MachineImpl in idcache
> 261844 [main] ERROR com.lessmann.capa.model.util.ModelMediator - Unable to save machine list;
> org.hibernate.HibernateException: Don't change the reference to a collection with cascade="all-delete-orphan": WorkWeek.days
> at org.hibernate.engine.Collections.prepareCollectionForUpdate( Collections.java:226)
> at org.hibernate.engine.Collections.processReachableCollection( Collections.java:185)
> at org.hibernate.event.def.FlushVisitor.processCollection(Flush Visitor.java:37)
> at org.hibernate.event.def.AbstractVisitor.processValue(Abstrac tVisitor.java:101)
> at org.hibernate.event.def.AbstractVisitor.processValue(Abstrac tVisitor.java:61)
> at org.hibernate.event.def.AbstractVisitor.processEntityPropert yValues(AbstractVisitor.java:55)
> at org.hibernate.event.def.DefaultFlushEntityEventListener.onFl ushEntity(DefaultFlushEntityEventListener.java:131)
> at org.hibernate.event.def.AbstractFlushingEventListener.flushE ntities(AbstractFlushingEventListener.java:195)
> at org.hibernate.event.def.AbstractFlushingEventListener.flushE verythingToExecutions(AbstractFlushingEventListener.java:76)
> at org.hibernate.event.def.DefaultFlushEventListener.onFlush(De faultFlushEventListener.java:26)
> at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
> at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java :338)
> at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransac tion.java:106)
> at com.lessmann.capa.model.util.ModelMediator.addMachine(ModelM ediator.java:191)
> at com.lessmann.capa.wizards.NewMachineWizard.performFinish(New MachineWizard.java:62)
> at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi alog.java:680)
> at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:355)
> at org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.jav a:660)
Re: Plugin Dependencies [message #584595 is a reply to message #43366] Mon, 07 August 2006 11:07 Go to previous message
Eclipse UserFriend
Originally posted by: rosskopf.progroup-inc.com

Hello Martin,

of course you can use my model.
I now solved the problem btw. I found a workaround.
After my initialization query I closed the session, and reopend for each
addMachine call. And that caused the error.

But as far as I understand a Hibernate Session isn´t made for a long
term use during the application lifecycle.

What do you think.
Nice holidays
---
Joachim

Martin Taal wrote:
> Hi Joachim,
> I did my best to reproduce this issue and the I accomplished this by
> reusing the elist instance
> stored in a WorkWeek days member in another WorkWeek (this is not
> allowed). Is this something you
> are doing?
>
> Another question I had is if it is okay if I add your model as a
> testcase to Teneo?
>
> Btw, I am on holiday so I don't check my email on a daily basis. So it
> can take a few days before I
> can react.
>
> gr. Martin
>
> Joachim Rosskopf wrote:
>> Hello Martin,
>>
>> addMachine doesn´t work! The call session.getTransaction().commit();
>> Throws a HibernateException.
>>
>> Attached you get the log of the complete session, with exactly one
>> machine in the list.
>>
>> Thank you in advance.
>> Regards
>> ---
>> Joachim
>>
>> Martin Taal wrote:
>>> Hi Joachim,
>>> You mean the addMachine doesn't work? When you debug through it does
>>> it run correctly through this method? But the machine does not get
>>> added in the db?
>>>
>>> Can you post the log? If you stop just after the commit in addMachine
>>> then that would be best probably.
>>>
>>> I have attached a log4j.properties which you can use, change every
>>> word error in debug and you would get the most info.
>>>
>>> gr. Martin
>>>
>>> Joachim Rosskopf wrote:
>>>> Hello Martin,
>>>>
>>>> would you like to help me another time.
>>>> I can´t find my mistake. Put it´s probably my mediator code.
>>>> I´ll attach it, and if you have some minutes it would be very nice
>>>> if you have an eye on it.
>>>>
>>>> Thank you in advance!
>>>> Regards
>>>> ---
>>>> Joachim
>>>>
>>>> Martin Taal wrote:
>>>>> Hi Joachim,
>>>>> I tested it and it works fine for me (get 2 machines in the db).
>>>>> Just need to ask but is this if statement correct:
>>>>> if (machine != null)
>>>>>
>>>>> is this true? or should it be:
>>>>> if (machines != null)
>>>>>
>>>>> gr. Martin
>>>>>
>>>>> Joachim Rosskopf wrote:
>>>>
>>>> ------------------------------------------------------------ ------------
>>>>
>>>>
>>>> package com.lessmann.capa.model.util;
>>>>
>>>> import org.apache.commons.logging.Log;
>>>> import org.apache.commons.logging.LogFactory;
>>>> import org.eclipse.emf.ecore.EPackage;
>>>> import org.eclipse.emf.teneo.hibernate.HbDataStore;
>>>> import org.eclipse.emf.teneo.hibernate.HbHelper;
>>>> import
>>>> org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList;
>>>>
>>>> import org.hibernate.Query;
>>>> import org.hibernate.Session;
>>>> import org.hibernate.SessionFactory;
>>>>
>>>> import java.io.IOException;
>>>> import java.net.URL;
>>>> import java.sql.PreparedStatement;
>>>> import java.sql.ResultSet;
>>>> import java.sql.SQLException;
>>>> import java.util.ArrayList;
>>>> import java.util.List;
>>>> import java.util.Properties;
>>>>
>>>> import com.lessmann.capa.model.Activator;
>>>> import com.lessmann.capa.model.CapacityEntry;
>>>> import com.lessmann.capa.model.Machine;
>>>> import com.lessmann.capa.model.MachineList;
>>>> import com.lessmann.capa.model.ModelFactory;
>>>> import com.lessmann.capa.model.Production;
>>>> import com.lessmann.capa.model.Task;
>>>> import com.lessmann.capa.model.WorkWeek;
>>>> import com.lessmann.capa.model.impl.ModelPackageImpl;
>>>> import com.toolsforjobs.util.misc.PropertyObservableBase;
>>>>
>>>> public class ModelMediator extends PropertyObservableBase {
>>>> public static final ModelMediator INSTANCE = new ModelMediator();
>>>> private static Log log =
>>>> LogFactory.getLog(ModelMediator.class);
>>>> protected HbDataStore dataStore;
>>>> protected MachineList machines;
>>>> private ModelMediator() {
>>>> dataStore =
>>>> HbHelper.INSTANCE.createRegisterDataStore("ModelDataStore");
>>>> dataStore.setEPackages(new EPackage[]
>>>> {ModelPackageImpl.eINSTANCE});
>>>> }
>>>> private class TaskListProxy {
>>>> PreparedStatement stmt;
>>>> TaskListProxy() {
>>>> StringBuilder query = new StringBuilder();
>>>> query.append("SELECT DISTINCT aprp.pos,
>>>> aprp.prnr, aprk.art, res.rsnr, res.bez1 as res_bez, res.wznr,
>>>> res.ts, ");
>>>> query.append("res.tr, res.rnr, ress.bez1 as ress_bez,
>>>> aprp.ianz, aprp.anz, aprk.ldat, aprk.dat ");
>>>> query.append("FROM res, ress, aprp, aprk WHERE ");
>>>> query.append("res.wznr LIKE ? AND ");
>>>> query.append("res.bez1 LIKE ? AND ");
>>>> query.append("res.ts > 0.0 AND ");
>>>> query.append("ress.rsnr = res.rnr AND ");
>>>> query.append("aprp.ianz > 0.0 AND ");
>>>> query.append("aprp.snr_res = res.rsnr AND
>>>> "); query.append("aprk.prnr = aprp.prnr AND
>>>> "); query.append("aprk.erl != 1 ");
>>>> query.append("ORDER BY res.wznr; ");
>>>> Session session =
>>>> dataStore.getSessionFactory().openSession();
>>>> try {
>>>> stmt =
>>>> session.connection().prepareStatement(query.toString());
>>>> } catch (SQLException sqlex) {
>>>> log.error("Unable to build statement for task list
>>>> query;", sqlex);
>>>> } finally {
>>>> session.close();
>>>> }
>>>> }
>>>> List loadTasks(Machine machine) {
>>>> if (stmt != null && machine != null) {
>>>> try {
>>>> List tasks = new ArrayList();
>>>> String machiness =
>>>> machine.getMachineSearchString().replace('*', '%');
>>>> String taskss =
>>>> machine.getTaskSearchString().replace('*', '%');
>>>> stmt.setString(1, machiness);
>>>> stmt.setString(2, taskss);
>>>> ResultSet resultset =
>>>> stmt.executeQuery();
>>>> while (resultset.next()) {
>>>> Task task = ModelFactory.INSTANCE.createTask();
>>>> task.setTaskId(resultset.getString("rsnr"));
>>>> task.setName(resultset.getString("res_bez"));
>>>> task.setTimePerPice(resultset.getFloat("ts"));
>>>>
>>>> task.setTimePerPreperation(resultset.getFloat("tr"));
>>>> CapacityEntry cpentry
>>>> = ModelFactory.INSTANCE.createCapacityEntry();
>>>>
>>>> cpentry.setCapacityEntryId(resultset.getString("rnr"));
>>>>
>>>> cpentry.setName(resultset.getString("ress_bez"));
>>>> task.setCapacityEntry(cpentry);
>>>> Production production
>>>> = ModelFactory.INSTANCE.createProduction();
>>>>
>>>> production.setProductionId(resultset.getString("prnr"));
>>>>
>>>> production.setArticle(resultset.getString("art"));
>>>> // TODO add parsing of the date here
>>>> production.setStartTime(null);
>>>> production.setDueTime(null);
>>>>
>>>> production.setTotalAmount(resultset.getFloat("anz"));
>>>>
>>>> production.setMissingAmount(resultset.getFloat("ianz"));
>>>> task.setProduction(production);
>>>> tasks.add(task);
>>>> }
>>>> resultset.close();
>>>> stmt.close();
>>>>
>>>> firePropertyChange("taskListLoaded", false, true);
>>>> return tasks;
>>>> } catch (SQLException sqlex) {
>>>> log.error("Unable to set arguments in statement
>>>> for task list query;", sqlex);
>>>> }
>>>> }
>>>> return new ArrayList<Task>();
>>>> }
>>>> }
>>>> public void initialize() {
>>>> if (Activator.getDefault() != null) {
>>>> log.debug("Loading properties;");
>>>> dataStore.setHibernateProperties(loadHbProperties());
>>>> }
>>>> log.debug("Initialize dataStore;");
>>>> dataStore.initialize();
>>>> log.debug("Fetching MachineList ... begin
>>>> transaction;");
>>>> Session session = dataStore.getSessionFactory().openSession();
>>>> session.beginTransaction();
>>>> try {
>>>> Query query = session.createQuery("FROM MachineList");
>>>> List list = query.list();
>>>> if(list.size() > 0) {
>>>> machines = (MachineList)list.get(0);
>>>> HibernatePersistableEList elist =
>>>> (HibernatePersistableEList)machines.getMachines();
>>>> if(!elist.isLoaded()) {
>>>> log.debug("Loading peristable elist;");
>>>> machines.getMachines().size();
>>>> }
>>>> } else {
>>>> machines = ModelFactory.INSTANCE.createMachineList();
>>>> session.saveOrUpdate(machines);
>>>> log.debug("No machines in database ...
>>>> bootstrapping;");
>>>> session.update(machines);
>>>> }
>>>> session.getTransaction().commit();
>>>> firePropertyChange("initialized", false, true);
>>>> } catch (Exception e) {
>>>> session.getTransaction().rollback();
>>>> log.error("Unable to initalize MachineList;", e);
>>>> } finally { session.close();
>>>> }
>>>> }
>>>> private Properties loadHbProperties() {
>>>> Properties properties = new Properties();
>>>> URL url =
>>>> Activator.getDefault().getBundle().getEntry("hibernate.properties ");
>>>> try {
>>>> properties.load(url.openStream());
>>>> } catch (IOException ioex) {
>>>> log.warn("Unable to load hibernate poperties;", ioex);
>>>> }
>>>> return properties;
>>>> }
>>>> public MachineList getMachines() {
>>>> return machines;
>>>> }
>>>> public boolean addMachine(Machine machine) {
>>>> boolean ret = true;
>>>> Session session =
>>>> dataStore.getSessionFactory().openSession();
>>>> session.beginTransaction();
>>>> try {
>>>> if (machines != null && machine != null) {
>>>> session.update(machines);
>>>> machines.getMachines().add(machine);
>>>> }
>>>> session.getTransaction().commit();
>>>> } catch (Exception e) {
>>>> log.error("Unable to save machine list;", e);
>>>> session.getTransaction().rollback();
>>>> } finally { session.close();
>>>> }
>>>> return ret;
>>>> }
>>>> public List getTasks(Machine machine) {
>>>> return new TaskListProxy().loadTasks(machine);
>>>> }
>>>> }
>>>
>>>
>>>
>>> ------------------------------------------------------------ ------------
>>>
>>> # Set root logger level to error and its only appender to A1.
>>> log4j.rootCategory=error, A1
>>>
>>> # A1 is set to be a ConsoleAppender.
>>> log4j.appender.A1=org.apache.log4j.ConsoleAppender
>>>
>>> # A1 uses PatternLayout.
>>> log4j.appender.A1.layout=org.apache.log4j.PatternLayout
>>> log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
>>>
>>> #log4j.logger.org.hibernate=error
>>> log4j.logger.org.hibernate=error
>>> #org.hibernate.pretty
>>>
>>> log4j.logger.org.hibernate.tool.hbm2ddl=error
>>>
>>> ### log HQL query parser activity
>>> log4j.logger.org.hibernate.hql.ast.AST=error
>>>
>>> ### log just the SQL
>>> log4j.logger.org.hibernate.SQL=error
>>>
>>> ### log JDBC bind parameters ###
>>> log4j.logger.org.hibernate.type=error
>>> #log4j.logger.org.hibernate.type=error
>>>
>>> ### log schema export/update ###
>>> log4j.logger.org.hibernate.tool.hbm2ddl=error
>>>
>>> ### log HQL parse trees
>>> log4j.logger.org.hibernate.hql=error
>>>
>>> ### log cache activity ###
>>> log4j.logger.org.hibernate.cache=error
>>>
>>> ### log transaction activity
>>> log4j.logger.org.hibernate.transaction=error
>>>
>>> ### log JDBC resource acquisition
>>> log4j.logger.org.hibernate.jdbc=error
>>>
>>> ### enable the following line if you want to track down connection ###
>>> ### leakages when using DriverManagerConnectionProvider ###
>>> log4j.logger.org.hibernate.connection.DriverManagerConnectio nProvider=error
>>>
>>
>>
>> ------------------------------------------------------------ ------------
>>
>> 0 [main] INFO org.eclipse.emf.teneo.hibernate.HbHelper - Creating
>> emf data store and registering it under name: ModelDataStore
>> 500 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>> Initializing protocol/extension for hibernate
>> 515 [main] INFO org.eclipse.emf.teneo.hibernate.HbHelper -
>> Returning created emf data store, initialize this newly created data
>> store!
>> 844 [main] DEBUG com.lessmann.capa.model.util.ModelMediator -
>> Loading properties;
>> 844 [main] DEBUG com.lessmann.capa.model.util.ModelMediator -
>> Initialize dataStore;
>> 844 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore - >>>>>
>> Creating HB Configuration
>> log4j:WARN No appenders could be found for logger
>> (org.hibernate.cfg.Environment).
>> log4j:WARN Please initialize the log4j system properly.
>> 1328 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>> Generating mapping file from in-mem ecore
>> log4j:WARN No appenders could be found for logger
>> (org.eclipse.emf.teneo.mapper.PersistenceMappingBuilderImpl) .
>> log4j:WARN Please initialize the log4j system properly.
>> 1812 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.HibernateMappingGener ator -
>> Geneting Hibernate mapping for
>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl @132b67c
>>
>> 1812 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Mapping Entity EClass/CapacityEntry
>> 1812 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - No of mappedSuperclasses 0
>> 1812 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Creating entity tag class
>> 1812 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - DValue CapacityEntry
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Table `capacityentry`
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Processing mapped superclasses, no of mappedsuperclasses: 0
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - processBasic capacityEntryId
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - addProperty capacityEntryId of type java.lang.String
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - processBasic name
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - addProperty name of type java.lang.String
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Mapping Entity EClass/Machine
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - No of mappedSuperclasses 0
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Creating entity tag class
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - DValue Machine
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Table `machine`
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Processing mapped superclasses, no of mappedsuperclasses: 0
>> 1828 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Generating
>> many to one unidirectional mapping for EReference/workWeek
>> 1828 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Process
>> many-to-one EReference/workWeek
>> 1828 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Target WorkWeek
>> 1828 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>> addManyToOne workWeek/WorkWeek
>> 1828 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>> addJoinColumns many-to-one/ no of joincolumns1
>> 1828 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>> JoinColumn workweek_id
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - Skipping transient feature for tasks
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - processBasic capacitySearchString
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - addProperty capacitySearchString of type java.lang.String
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - processBasic machineId
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - addProperty machineId of type java.lang.String
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - processBasic machineSearchString
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - addProperty machineSearchString of type java.lang.String
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - processBasic multiplicity
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - addProperty multiplicity of type int
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - processBasic taskSearchString
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - addProperty taskSearchString of type java.lang.String
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Mapping Entity EClass/MachineList
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - No of mappedSuperclasses 0
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Creating entity tag class
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - DValue MachineList
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Table `machinelist`
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Processing mapped superclasses, no of mappedsuperclasses: 0
>> 1828 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.OneToManyMapper - Generating
>> one to many unidirectional mapping for EReference/machines
>> 1828 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>> Adding key columns
>> 1828 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>> Column machines_id
>> 1828 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>> Add list index MACHINELIST_MACHINES_IDX to machines
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Mapping Entity EClass/Production
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - No of mappedSuperclasses 0
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Creating entity tag class
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - DValue Production
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Table `production`
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Processing mapped superclasses, no of mappedsuperclasses: 0
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - processBasic article
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - addProperty article of type java.lang.String
>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - processBasic dueTime
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - addProperty dueTime of type serializable
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - processBasic missingAmount
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - addProperty missingAmount of type float
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - processBasic productionId
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - addProperty productionId of type java.lang.String
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - processBasic startTime
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - addProperty startTime of type serializable
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - processBasic totalAmount
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - addProperty totalAmount of type float
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Mapping Entity EClass/Task
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - No of mappedSuperclasses 0
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Creating entity tag class
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - DValue Task
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Table `task`
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Processing mapped superclasses, no of mappedsuperclasses: 0
>> 1844 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Generating
>> many to one unidirectional mapping for EReference/capacityEntry
>> 1844 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Process
>> many-to-one EReference/capacityEntry
>> 1844 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Target
>> CapacityEntry
>> 1844 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>> addManyToOne capacityEntry/CapacityEntry
>> 1844 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>> addJoinColumns many-to-one/ no of joincolumns1
>> 1844 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>> JoinColumn capacityentry_id
>> 1844 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Generating
>> many to one unidirectional mapping for EReference/production
>> 1844 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Process
>> many-to-one EReference/production
>> 1844 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Target
>> Production
>> 1844 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>> addManyToOne production/Production
>> 1844 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>> addJoinColumns many-to-one/ no of joincolumns1
>> 1844 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>> JoinColumn production_id
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - processBasic name
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - addProperty name of type java.lang.String
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - processBasic taskId
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - addProperty taskId of type java.lang.String
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - processBasic timePerPice
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - addProperty timePerPice of type float
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - processBasic timePerPreperation
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - addProperty timePerPreperation of type float
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Mapping Entity EClass/WorkDay
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - No of mappedSuperclasses 0
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Creating entity tag class
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - DValue WorkDay
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Table `workday`
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Processing mapped superclasses, no of mappedsuperclasses: 0
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - processBasic dayOfWeek
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - addProperty dayOfWeek of type int
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - processBasic duration
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - addProperty duration of type int
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - processBasic startTime
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - addProperty startTime of type int
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Mapping Entity EClass/WorkWeek
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - No of mappedSuperclasses 0
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Creating entity tag class
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - DValue WorkWeek
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Table `workweek`
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.EntityMapper
>> - Processing mapped superclasses, no of mappedsuperclasses: 0
>> 1844 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.OneToManyMapper - Generating
>> one to many unidirectional mapping for EReference/days
>> 1844 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>> Adding key columns
>> 1844 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>> Column days_id
>> 1844 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>> Add list index WORKWEEK_DAYS_IDX to days
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - processBasic workWeekId
>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>> - addProperty workWeekId of type java.lang.String
>> 2812 [main] WARN org.eclipse.emf.teneo.hibernate.HbDataStore - No
>> hibernate cache provider set, using
>> org.hibernate.cache.HashtableCacheProvider
>> 2812 [main] WARN org.eclipse.emf.teneo.hibernate.HbDataStore - For
>> production use please set the ehcache (or other) provider explicitly
>> and configure it
>> 2812 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>> Setting properties in Hibernate Configuration:
>> 2812 [main] INFO org.eclipse.emf.teneo.hibernate.HbDataStore -
>> hibernate.connection.username: pg_pp01
>> 2812 [main] INFO org.eclipse.emf.teneo.hibernate.HbDataStore -
>> hibernate.default_schema: public
>> 2812 [main] INFO org.eclipse.emf.teneo.hibernate.HbDataStore -
>> hibernate.connection.password: postgress
>> 2812 [main] INFO org.eclipse.emf.teneo.hibernate.HbDataStore -
>> hibernate.cache.provider_class:
>> org.hibernate.cache.HashtableCacheProvider
>> 2812 [main] INFO org.eclipse.emf.teneo.hibernate.HbDataStore -
>> hibernate.dialect: org.hibernate.dialect.PostgreSQLDialect
>> 2812 [main] INFO org.eclipse.emf.teneo.hibernate.HbDataStore -
>> hibernate.connection.url: jdbc:postgresql://localhost:5432/MXDBS
>> 2812 [main] INFO org.eclipse.emf.teneo.hibernate.HbDataStore -
>> hibernate.connection.driver_class: org.postgresql.Driver
>> 2812 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>> Determine referers for each class
>> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>> Adding container mapping for WorkWeek
>> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>> Adding eContainer and econtainerfeatureid properties to null
>> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>> Adding container mapping for WorkDay
>> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>> Adding eContainer and econtainerfeatureid properties to null
>> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>> Adding container mapping for Production
>> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>> Adding eContainer and econtainerfeatureid properties to null
>> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>> Adding container mapping for Machine
>> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>> Adding eContainer and econtainerfeatureid properties to null
>> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>> Adding container mapping for CapacityEntry
>> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>> Adding eContainer and econtainerfeatureid properties to null
>> 2844 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>> Starting update of schema
>> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore - >>>
>> Update of schema finished
>> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>> Registering datastore with persistent classes
>> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbHelper -
>> Datastore: ModelDataStore registered for pc: WorkWeek
>> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbHelper -
>> Datastore: ModelDataStore registered for pc: WorkDay
>> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbHelper -
>> Datastore: ModelDataStore registered for pc: Task
>> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbHelper -
>> Datastore: ModelDataStore registered for pc: Production
>> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbHelper -
>> Datastore: ModelDataStore registered for pc: MachineList
>> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbHelper -
>> Datastore: ModelDataStore registered for pc: Machine
>> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbHelper -
>> Datastore: ModelDataStore registered for pc: CapacityEntry
>> 4328 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for days/WorkWeek/days
>> 4328 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler
>> - Created getter/setter for WorkWeek/days
>> 4328 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for days/WorkWeek/days
>> 4328 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler
>> - Created getter/setter for WorkWeek/days
>> 4328 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for workWeekId/WorkWeek/workWeekId
>> 4328 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for WorkWeek/workWeekId
>> 4328 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for workWeekId/WorkWeek/workWeekId
>> 4328 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for WorkWeek/workWeekId
>> 4328 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler
>> - Created eContainer property handler
>> 4328 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler
>> - Created eContainer property handler
>> 4344 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler
>> - Created eContainerFeatureID handler
>> 4344 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler
>> - Created eContainerFeatureID handler
>> 4344 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.tuplizer.EMFInstantiator - Creating
>> eobject instantiator for WorkWeek and eclass WorkWeek
>> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for dayOfWeek/WorkDay/dayOfWeek
>> 4625 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for WorkDay/dayOfWeek
>> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for dayOfWeek/WorkDay/dayOfWeek
>> 4625 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for WorkDay/dayOfWeek
>> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for duration/WorkDay/duration
>> 4625 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for WorkDay/duration
>> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for duration/WorkDay/duration
>> 4625 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for WorkDay/duration
>> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for startTime/WorkDay/startTime
>> 4625 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for WorkDay/startTime
>> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for startTime/WorkDay/startTime
>> 4625 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for WorkDay/startTime
>> 4625 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler
>> - Created eContainer property handler
>> 4625 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler
>> - Created eContainer property handler
>> 4625 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler
>> - Created eContainerFeatureID handler
>> 4625 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler
>> - Created eContainerFeatureID handler
>> 4625 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.tuplizer.EMFInstantiator - Creating
>> eobject instantiator for WorkDay and eclass WorkDay
>> 4703 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for capacityEntry/Task/capacityEntry
>> 4703 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EReferenceP ropertyHandler
>> - Created getter/setter for Task/capacityEntry
>> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for capacityEntry/Task/capacityEntry
>> 4719 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EReferenceP ropertyHandler
>> - Created getter/setter for Task/capacityEntry
>> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for production/Task/production
>> 4719 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EReferenceP ropertyHandler
>> - Created getter/setter for Task/production
>> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for production/Task/production
>> 4719 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EReferenceP ropertyHandler
>> - Created getter/setter for Task/production
>> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for name/Task/name
>> 4719 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Task/name
>> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for name/Task/name
>> 4719 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Task/name
>> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for taskId/Task/taskId
>> 4719 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Task/taskId
>> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for taskId/Task/taskId
>> 4719 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Task/taskId
>> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for timePerPice/Task/timePerPice
>> 4719 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Task/timePerPice
>> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for timePerPice/Task/timePerPice
>> 4719 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Task/timePerPice
>> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for timePerPreperation/Task/timePerPreperation
>> 4719 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Task/timePerPreperation
>> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for timePerPreperation/Task/timePerPreperation
>> 4719 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Task/timePerPreperation
>> 4719 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.tuplizer.EMFInstantiator - Creating
>> eobject instantiator for Task and eclass Task
>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for article/Production/article
>> 4765 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Production/article
>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for article/Production/article
>> 4765 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Production/article
>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for dueTime/Production/dueTime
>> 4765 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Production/dueTime
>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for dueTime/Production/dueTime
>> 4765 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Production/dueTime
>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for missingAmount/Production/missingAmount
>> 4765 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Production/missingAmount
>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for missingAmount/Production/missingAmount
>> 4765 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Production/missingAmount
>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for productionId/Production/productionId
>> 4765 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Production/productionId
>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for productionId/Production/productionId
>> 4765 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Production/productionId
>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for startTime/Production/startTime
>> 4765 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Production/startTime
>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for startTime/Production/startTime
>> 4765 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Production/startTime
>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for totalAmount/Production/totalAmount
>> 4765 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Production/totalAmount
>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for totalAmount/Production/totalAmount
>> 4765 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Production/totalAmount
>> 4765 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler
>> - Created eContainer property handler
>> 4765 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler
>> - Created eContainer property handler
>> 4765 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler
>> - Created eContainerFeatureID handler
>> 4765 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler
>> - Created eContainerFeatureID handler
>> 4765 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.tuplizer.EMFInstantiator - Creating
>> eobject instantiator for Production and eclass Production
>> 4859 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for machines/MachineList/machines
>> 4859 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler
>> - Created getter/setter for MachineList/machines
>> 4859 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for machines/MachineList/machines
>> 4859 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler
>> - Created getter/setter for MachineList/machines
>> 4859 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.tuplizer.EMFInstantiator - Creating
>> eobject instantiator for MachineList and eclass MachineList
>> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for workWeek/Machine/workWeek
>> 4906 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EReferenceP ropertyHandler
>> - Created getter/setter for Machine/workWeek
>> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for workWeek/Machine/workWeek
>> 4906 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EReferenceP ropertyHandler
>> - Created getter/setter for Machine/workWeek
>> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for capacitySearchString/Machine/capacitySearchString
>> 4906 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Machine/capacitySearchString
>> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for capacitySearchString/Machine/capacitySearchString
>> 4906 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Machine/capacitySearchString
>> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for machineId/Machine/machineId
>> 4906 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Machine/machineId
>> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for machineId/Machine/machineId
>> 4906 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Machine/machineId
>> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for machineSearchString/Machine/machineSearchString
>> 4906 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Machine/machineSearchString
>> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for machineSearchString/Machine/machineSearchString
>> 4906 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Machine/machineSearchString
>> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for multiplicity/Machine/multiplicity
>> 4906 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Machine/multiplicity
>> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for multiplicity/Machine/multiplicity
>> 4906 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Machine/multiplicity
>> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for taskSearchString/Machine/taskSearchString
>> 4906 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Machine/taskSearchString
>> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for taskSearchString/Machine/taskSearchString
>> 4906 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for Machine/taskSearchString
>> 4906 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler
>> - Created eContainer property handler
>> 4906 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler
>> - Created eContainer property handler
>> 4906 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler
>> - Created eContainerFeatureID handler
>> 4906 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler
>> - Created eContainerFeatureID handler
>> 4906 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.tuplizer.EMFInstantiator - Creating
>> eobject instantiator for Machine and eclass Machine
>> 5015 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for capacityEntryId/CapacityEntry/capacityEntryId
>> 5015 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for CapacityEntry/capacityEntryId
>> 5015 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for capacityEntryId/CapacityEntry/capacityEntryId
>> 5015 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for CapacityEntry/capacityEntryId
>> 5015 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for name/CapacityEntry/name
>> 5015 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for CapacityEntry/name
>> 5015 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>> property accessor for name/CapacityEntry/name
>> 5015 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>> - Created getter/setter for CapacityEntry/name
>> 5015 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler
>> - Created eContainer property handler
>> 5015 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler
>> - Created eContainer property handler
>> 5015 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler
>> - Created eContainerFeatureID handler
>> 5015 [main] DEBUG
>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFea
Re: Plugin Dependencies [message #585045 is a reply to message #43693] Thu, 10 August 2006 09:51 Go to previous message
Eclipse UserFriend
Hi Joachim,
Sessions are not really for the applications life cycle but can be used for so-called long
conversations.
I use this in the Hibernate EMF resource implementation. Hibernate will only use database resources
when you have an open/running transaction. So you can keep a session open after you commit a
transaction and begin a new transaction (from the same session) when you need that.
See also the hibernate manual (chapter 11, look for long conversations and also extended session).

There are a number of things to take into account when you use one session:
- the session cache will grow over time
- it is hard to recover from a database exception (like a delete constraint violation) because your
session can not be used anymore after a db exception.
- you need to try out what flush mode works best (see also the hibernate manual)

gr. Martin

Joachim Rosskopf wrote:
> Hello Martin,
>
> of course you can use my model.
> I now solved the problem btw. I found a workaround.
> After my initialization query I closed the session, and reopend for each
> addMachine call. And that caused the error.
>
> But as far as I understand a Hibernate Session isn´t made for a long
> term use during the application lifecycle.
>
> What do you think.
> Nice holidays
> ---
> Joachim
>
> Martin Taal wrote:
>> Hi Joachim,
>> I did my best to reproduce this issue and the I accomplished this by
>> reusing the elist instance
>> stored in a WorkWeek days member in another WorkWeek (this is not
>> allowed). Is this something you
>> are doing?
>>
>> Another question I had is if it is okay if I add your model as a
>> testcase to Teneo?
>>
>> Btw, I am on holiday so I don't check my email on a daily basis. So it
>> can take a few days before I
>> can react.
>>
>> gr. Martin
>>
>> Joachim Rosskopf wrote:
>>> Hello Martin,
>>>
>>> addMachine doesn´t work! The call session.getTransaction().commit();
>>> Throws a HibernateException.
>>>
>>> Attached you get the log of the complete session, with exactly one
>>> machine in the list.
>>>
>>> Thank you in advance.
>>> Regards
>>> ---
>>> Joachim
>>>
>>> Martin Taal wrote:
>>>> Hi Joachim,
>>>> You mean the addMachine doesn't work? When you debug through it does
>>>> it run correctly through this method? But the machine does not get
>>>> added in the db?
>>>>
>>>> Can you post the log? If you stop just after the commit in
>>>> addMachine then that would be best probably.
>>>>
>>>> I have attached a log4j.properties which you can use, change every
>>>> word error in debug and you would get the most info.
>>>>
>>>> gr. Martin
>>>>
>>>> Joachim Rosskopf wrote:
>>>>> Hello Martin,
>>>>>
>>>>> would you like to help me another time.
>>>>> I can´t find my mistake. Put it´s probably my mediator code.
>>>>> I´ll attach it, and if you have some minutes it would be very nice
>>>>> if you have an eye on it.
>>>>>
>>>>> Thank you in advance!
>>>>> Regards
>>>>> ---
>>>>> Joachim
>>>>>
>>>>> Martin Taal wrote:
>>>>>> Hi Joachim,
>>>>>> I tested it and it works fine for me (get 2 machines in the db).
>>>>>> Just need to ask but is this if statement correct:
>>>>>> if (machine != null)
>>>>>>
>>>>>> is this true? or should it be:
>>>>>> if (machines != null)
>>>>>>
>>>>>> gr. Martin
>>>>>>
>>>>>> Joachim Rosskopf wrote:
>>>>>
>>>>> ------------------------------------------------------------ ------------
>>>>>
>>>>>
>>>>> package com.lessmann.capa.model.util;
>>>>>
>>>>> import org.apache.commons.logging.Log;
>>>>> import org.apache.commons.logging.LogFactory;
>>>>> import org.eclipse.emf.ecore.EPackage;
>>>>> import org.eclipse.emf.teneo.hibernate.HbDataStore;
>>>>> import org.eclipse.emf.teneo.hibernate.HbHelper;
>>>>> import
>>>>> org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList;
>>>>>
>>>>> import org.hibernate.Query;
>>>>> import org.hibernate.Session;
>>>>> import org.hibernate.SessionFactory;
>>>>>
>>>>> import java.io.IOException;
>>>>> import java.net.URL;
>>>>> import java.sql.PreparedStatement;
>>>>> import java.sql.ResultSet;
>>>>> import java.sql.SQLException;
>>>>> import java.util.ArrayList;
>>>>> import java.util.List;
>>>>> import java.util.Properties;
>>>>>
>>>>> import com.lessmann.capa.model.Activator;
>>>>> import com.lessmann.capa.model.CapacityEntry;
>>>>> import com.lessmann.capa.model.Machine;
>>>>> import com.lessmann.capa.model.MachineList;
>>>>> import com.lessmann.capa.model.ModelFactory;
>>>>> import com.lessmann.capa.model.Production;
>>>>> import com.lessmann.capa.model.Task;
>>>>> import com.lessmann.capa.model.WorkWeek;
>>>>> import com.lessmann.capa.model.impl.ModelPackageImpl;
>>>>> import com.toolsforjobs.util.misc.PropertyObservableBase;
>>>>>
>>>>> public class ModelMediator extends PropertyObservableBase {
>>>>> public static final ModelMediator INSTANCE = new ModelMediator();
>>>>> private static Log log =
>>>>> LogFactory.getLog(ModelMediator.class);
>>>>> protected HbDataStore dataStore;
>>>>> protected MachineList machines;
>>>>> private ModelMediator() {
>>>>> dataStore =
>>>>> HbHelper.INSTANCE.createRegisterDataStore("ModelDataStore");
>>>>> dataStore.setEPackages(new EPackage[]
>>>>> {ModelPackageImpl.eINSTANCE});
>>>>> }
>>>>> private class TaskListProxy {
>>>>> PreparedStatement stmt;
>>>>> TaskListProxy() {
>>>>> StringBuilder query = new StringBuilder();
>>>>> query.append("SELECT DISTINCT aprp.pos,
>>>>> aprp.prnr, aprk.art, res.rsnr, res.bez1 as res_bez, res.wznr,
>>>>> res.ts, ");
>>>>> query.append("res.tr, res.rnr, ress.bez1 as ress_bez,
>>>>> aprp.ianz, aprp.anz, aprk.ldat, aprk.dat ");
>>>>> query.append("FROM res, ress, aprp, aprk WHERE ");
>>>>> query.append("res.wznr LIKE ? AND ");
>>>>> query.append("res.bez1 LIKE ? AND ");
>>>>> query.append("res.ts > 0.0 AND ");
>>>>> query.append("ress.rsnr = res.rnr AND ");
>>>>> query.append("aprp.ianz > 0.0 AND ");
>>>>> query.append("aprp.snr_res = res.rsnr AND
>>>>> "); query.append("aprk.prnr = aprp.prnr AND
>>>>> "); query.append("aprk.erl != 1 ");
>>>>> query.append("ORDER BY res.wznr; ");
>>>>> Session session =
>>>>> dataStore.getSessionFactory().openSession();
>>>>> try {
>>>>> stmt =
>>>>> session.connection().prepareStatement(query.toString());
>>>>> } catch (SQLException sqlex) {
>>>>> log.error("Unable to build statement for task list
>>>>> query;", sqlex);
>>>>> } finally {
>>>>> session.close();
>>>>> }
>>>>> }
>>>>> List loadTasks(Machine machine) {
>>>>> if (stmt != null && machine != null) {
>>>>> try {
>>>>> List tasks = new ArrayList();
>>>>> String machiness =
>>>>> machine.getMachineSearchString().replace('*', '%');
>>>>> String taskss =
>>>>> machine.getTaskSearchString().replace('*', '%');
>>>>> stmt.setString(1, machiness);
>>>>> stmt.setString(2, taskss);
>>>>> ResultSet resultset =
>>>>> stmt.executeQuery();
>>>>> while (resultset.next()) {
>>>>> Task task =
>>>>> ModelFactory.INSTANCE.createTask();
>>>>> task.setTaskId(resultset.getString("rsnr"));
>>>>> task.setName(resultset.getString("res_bez"));
>>>>> task.setTimePerPice(resultset.getFloat("ts"));
>>>>>
>>>>> task.setTimePerPreperation(resultset.getFloat("tr"));
>>>>> CapacityEntry
>>>>> cpentry = ModelFactory.INSTANCE.createCapacityEntry();
>>>>>
>>>>> cpentry.setCapacityEntryId(resultset.getString("rnr"));
>>>>>
>>>>> cpentry.setName(resultset.getString("ress_bez"));
>>>>> task.setCapacityEntry(cpentry);
>>>>> Production
>>>>> production = ModelFactory.INSTANCE.createProduction();
>>>>>
>>>>> production.setProductionId(resultset.getString("prnr"));
>>>>>
>>>>> production.setArticle(resultset.getString("art"));
>>>>> // TODO add parsing of the date here
>>>>> production.setStartTime(null);
>>>>> production.setDueTime(null);
>>>>>
>>>>> production.setTotalAmount(resultset.getFloat("anz"));
>>>>>
>>>>> production.setMissingAmount(resultset.getFloat("ianz"));
>>>>> task.setProduction(production);
>>>>> tasks.add(task);
>>>>> }
>>>>> resultset.close();
>>>>> stmt.close();
>>>>>
>>>>> firePropertyChange("taskListLoaded", false, true);
>>>>> return tasks;
>>>>> } catch (SQLException sqlex) {
>>>>> log.error("Unable to set arguments in statement
>>>>> for task list query;", sqlex);
>>>>> }
>>>>> }
>>>>> return new ArrayList<Task>();
>>>>> }
>>>>> }
>>>>> public void initialize() {
>>>>> if (Activator.getDefault() != null) {
>>>>> log.debug("Loading properties;");
>>>>> dataStore.setHibernateProperties(loadHbProperties());
>>>>> }
>>>>> log.debug("Initialize dataStore;");
>>>>> dataStore.initialize();
>>>>> log.debug("Fetching MachineList ... begin
>>>>> transaction;");
>>>>> Session session = dataStore.getSessionFactory().openSession();
>>>>> session.beginTransaction();
>>>>> try {
>>>>> Query query = session.createQuery("FROM MachineList");
>>>>> List list = query.list();
>>>>> if(list.size() > 0) {
>>>>> machines = (MachineList)list.get(0);
>>>>> HibernatePersistableEList elist =
>>>>> (HibernatePersistableEList)machines.getMachines();
>>>>> if(!elist.isLoaded()) {
>>>>> log.debug("Loading peristable elist;");
>>>>> machines.getMachines().size();
>>>>> }
>>>>> } else {
>>>>> machines = ModelFactory.INSTANCE.createMachineList();
>>>>> session.saveOrUpdate(machines);
>>>>> log.debug("No machines in database ...
>>>>> bootstrapping;");
>>>>> session.update(machines);
>>>>> }
>>>>> session.getTransaction().commit();
>>>>> firePropertyChange("initialized", false, true);
>>>>> } catch (Exception e) {
>>>>> session.getTransaction().rollback();
>>>>> log.error("Unable to initalize MachineList;", e);
>>>>> } finally { session.close();
>>>>> }
>>>>> }
>>>>> private Properties loadHbProperties() {
>>>>> Properties properties = new Properties();
>>>>> URL url =
>>>>> Activator.getDefault().getBundle().getEntry("hibernate.properties ");
>>>>> try {
>>>>> properties.load(url.openStream());
>>>>> } catch (IOException ioex) {
>>>>> log.warn("Unable to load hibernate poperties;", ioex);
>>>>> }
>>>>> return properties;
>>>>> }
>>>>> public MachineList getMachines() {
>>>>> return machines;
>>>>> }
>>>>> public boolean addMachine(Machine machine) {
>>>>> boolean ret = true;
>>>>> Session session =
>>>>> dataStore.getSessionFactory().openSession();
>>>>> session.beginTransaction();
>>>>> try {
>>>>> if (machines != null && machine != null) {
>>>>> session.update(machines);
>>>>> machines.getMachines().add(machine);
>>>>> }
>>>>> session.getTransaction().commit();
>>>>> } catch (Exception e) {
>>>>> log.error("Unable to save machine list;", e);
>>>>> session.getTransaction().rollback();
>>>>> } finally { session.close();
>>>>> }
>>>>> return ret;
>>>>> }
>>>>> public List getTasks(Machine machine) {
>>>>> return new TaskListProxy().loadTasks(machine);
>>>>> }
>>>>> }
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------ ------------
>>>>
>>>>
>>>> # Set root logger level to error and its only appender to A1.
>>>> log4j.rootCategory=error, A1
>>>>
>>>> # A1 is set to be a ConsoleAppender.
>>>> log4j.appender.A1=org.apache.log4j.ConsoleAppender
>>>>
>>>> # A1 uses PatternLayout.
>>>> log4j.appender.A1.layout=org.apache.log4j.PatternLayout
>>>> log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
>>>>
>>>> #log4j.logger.org.hibernate=error
>>>> log4j.logger.org.hibernate=error
>>>> #org.hibernate.pretty
>>>>
>>>> log4j.logger.org.hibernate.tool.hbm2ddl=error
>>>>
>>>> ### log HQL query parser activity
>>>> log4j.logger.org.hibernate.hql.ast.AST=error
>>>>
>>>> ### log just the SQL
>>>> log4j.logger.org.hibernate.SQL=error
>>>>
>>>> ### log JDBC bind parameters ###
>>>> log4j.logger.org.hibernate.type=error
>>>> #log4j.logger.org.hibernate.type=error
>>>>
>>>> ### log schema export/update ###
>>>> log4j.logger.org.hibernate.tool.hbm2ddl=error
>>>>
>>>> ### log HQL parse trees
>>>> log4j.logger.org.hibernate.hql=error
>>>>
>>>> ### log cache activity ###
>>>> log4j.logger.org.hibernate.cache=error
>>>>
>>>> ### log transaction activity
>>>> log4j.logger.org.hibernate.transaction=error
>>>>
>>>> ### log JDBC resource acquisition
>>>> log4j.logger.org.hibernate.jdbc=error
>>>>
>>>> ### enable the following line if you want to track down connection ###
>>>> ### leakages when using DriverManagerConnectionProvider ###
>>>> log4j.logger.org.hibernate.connection.DriverManagerConnectio nProvider=error
>>>>
>>>
>>>
>>> ------------------------------------------------------------ ------------
>>>
>>> 0 [main] INFO org.eclipse.emf.teneo.hibernate.HbHelper -
>>> Creating emf data store and registering it under name: ModelDataStore
>>> 500 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> Initializing protocol/extension for hibernate
>>> 515 [main] INFO org.eclipse.emf.teneo.hibernate.HbHelper -
>>> Returning created emf data store, initialize this newly created data
>>> store!
>>> 844 [main] DEBUG com.lessmann.capa.model.util.ModelMediator -
>>> Loading properties;
>>> 844 [main] DEBUG com.lessmann.capa.model.util.ModelMediator -
>>> Initialize dataStore;
>>> 844 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> >>>>> Creating HB Configuration
>>> log4j:WARN No appenders could be found for logger
>>> (org.hibernate.cfg.Environment).
>>> log4j:WARN Please initialize the log4j system properly.
>>> 1328 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> Generating mapping file from in-mem ecore
>>> log4j:WARN No appenders could be found for logger
>>> (org.eclipse.emf.teneo.mapper.PersistenceMappingBuilderImpl) .
>>> log4j:WARN Please initialize the log4j system properly.
>>> 1812 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.HibernateMappingGener ator -
>>> Geneting Hibernate mapping for
>>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl @132b67c
>>>
>>> 1812 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Mapping Entity
>>> EClass/CapacityEntry
>>> 1812 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - No of
>>> mappedSuperclasses 0
>>> 1812 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Creating
>>> entity tag class
>>> 1812 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - DValue
>>> CapacityEntry
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Table
>>> `capacityentry`
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Processing
>>> mapped superclasses, no of mappedsuperclasses: 0
>>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - processBasic capacityEntryId
>>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - addProperty capacityEntryId of type java.lang.String
>>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - processBasic name
>>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - addProperty name of type java.lang.String
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Mapping Entity
>>> EClass/Machine
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - No of
>>> mappedSuperclasses 0
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Creating
>>> entity tag class
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - DValue Machine
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Table `machine`
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Processing
>>> mapped superclasses, no of mappedsuperclasses: 0
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Generating
>>> many to one unidirectional mapping for EReference/workWeek
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Process
>>> many-to-one EReference/workWeek
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Target
>>> WorkWeek
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>>> addManyToOne workWeek/WorkWeek
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>>> addJoinColumns many-to-one/ no of joincolumns1
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>>> JoinColumn workweek_id
>>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - Skipping transient feature for tasks
>>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - processBasic capacitySearchString
>>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - addProperty capacitySearchString of type java.lang.String
>>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - processBasic machineId
>>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - addProperty machineId of type java.lang.String
>>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - processBasic machineSearchString
>>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - addProperty machineSearchString of type java.lang.String
>>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - processBasic multiplicity
>>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - addProperty multiplicity of type int
>>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - processBasic taskSearchString
>>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - addProperty taskSearchString of type java.lang.String
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Mapping Entity
>>> EClass/MachineList
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - No of
>>> mappedSuperclasses 0
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Creating
>>> entity tag class
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - DValue
>>> MachineList
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Table
>>> `machinelist`
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Processing
>>> mapped superclasses, no of mappedsuperclasses: 0
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.OneToManyMapper - Generating
>>> one to many unidirectional mapping for EReference/machines
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>>> Adding key columns
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>>> Column machines_id
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>>> Add list index MACHINELIST_MACHINES_IDX to machines
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Mapping Entity
>>> EClass/Production
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - No of
>>> mappedSuperclasses 0
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Creating
>>> entity tag class
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - DValue Production
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Table
>>> `production`
>>> 1828 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Processing
>>> mapped superclasses, no of mappedsuperclasses: 0
>>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - processBasic article
>>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - addProperty article of type java.lang.String
>>> 1828 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - processBasic dueTime
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - addProperty dueTime of type serializable
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - processBasic missingAmount
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - addProperty missingAmount of type float
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - processBasic productionId
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - addProperty productionId of type java.lang.String
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - processBasic startTime
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - addProperty startTime of type serializable
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - processBasic totalAmount
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - addProperty totalAmount of type float
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Mapping Entity
>>> EClass/Task
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - No of
>>> mappedSuperclasses 0
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Creating
>>> entity tag class
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - DValue Task
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Table `task`
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Processing
>>> mapped superclasses, no of mappedsuperclasses: 0
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Generating
>>> many to one unidirectional mapping for EReference/capacityEntry
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Process
>>> many-to-one EReference/capacityEntry
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Target
>>> CapacityEntry
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>>> addManyToOne capacityEntry/CapacityEntry
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>>> addJoinColumns many-to-one/ no of joincolumns1
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>>> JoinColumn capacityentry_id
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Generating
>>> many to one unidirectional mapping for EReference/production
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Process
>>> many-to-one EReference/production
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.ManyToOneMapper - Target
>>> Production
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>>> addManyToOne production/Production
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>>> addJoinColumns many-to-one/ no of joincolumns1
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>>> JoinColumn production_id
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - processBasic name
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - addProperty name of type java.lang.String
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - processBasic taskId
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - addProperty taskId of type java.lang.String
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - processBasic timePerPice
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - addProperty timePerPice of type float
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - processBasic timePerPreperation
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - addProperty timePerPreperation of type float
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Mapping Entity
>>> EClass/WorkDay
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - No of
>>> mappedSuperclasses 0
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Creating
>>> entity tag class
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - DValue WorkDay
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Table `workday`
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Processing
>>> mapped superclasses, no of mappedsuperclasses: 0
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - processBasic dayOfWeek
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - addProperty dayOfWeek of type int
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - processBasic duration
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - addProperty duration of type int
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - processBasic startTime
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - addProperty startTime of type int
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Mapping Entity
>>> EClass/WorkWeek
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - No of
>>> mappedSuperclasses 0
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Creating
>>> entity tag class
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - DValue WorkWeek
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Table `workweek`
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.EntityMapper - Processing
>>> mapped superclasses, no of mappedsuperclasses: 0
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.OneToManyMapper - Generating
>>> one to many unidirectional mapping for EReference/days
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>>> Adding key columns
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>>> Column days_id
>>> 1844 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapper.AbstractAssociationMa pper -
>>> Add list index WORKWEEK_DAYS_IDX to days
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - processBasic workWeekId
>>> 1844 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.BasicMapper
>>> - addProperty workWeekId of type java.lang.String
>>> 2812 [main] WARN org.eclipse.emf.teneo.hibernate.HbDataStore - No
>>> hibernate cache provider set, using
>>> org.hibernate.cache.HashtableCacheProvider
>>> 2812 [main] WARN org.eclipse.emf.teneo.hibernate.HbDataStore - For
>>> production use please set the ehcache (or other) provider explicitly
>>> and configure it
>>> 2812 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> Setting properties in Hibernate Configuration:
>>> 2812 [main] INFO org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> hibernate.connection.username: pg_pp01
>>> 2812 [main] INFO org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> hibernate.default_schema: public
>>> 2812 [main] INFO org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> hibernate.connection.password: postgress
>>> 2812 [main] INFO org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> hibernate.cache.provider_class:
>>> org.hibernate.cache.HashtableCacheProvider
>>> 2812 [main] INFO org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> hibernate.dialect: org.hibernate.dialect.PostgreSQLDialect
>>> 2812 [main] INFO org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> hibernate.connection.url: jdbc:postgresql://localhost:5432/MXDBS
>>> 2812 [main] INFO org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> hibernate.connection.driver_class: org.postgresql.Driver
>>> 2812 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> Determine referers for each class
>>> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> Adding container mapping for WorkWeek
>>> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> Adding eContainer and econtainerfeatureid properties to null
>>> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> Adding container mapping for WorkDay
>>> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> Adding eContainer and econtainerfeatureid properties to null
>>> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> Adding container mapping for Production
>>> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> Adding eContainer and econtainerfeatureid properties to null
>>> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> Adding container mapping for Machine
>>> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> Adding eContainer and econtainerfeatureid properties to null
>>> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> Adding container mapping for CapacityEntry
>>> 2828 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> Adding eContainer and econtainerfeatureid properties to null
>>> 2844 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> Starting update of schema
>>> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore - >>>
>>> Update of schema finished
>>> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbDataStore -
>>> Registering datastore with persistent classes
>>> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbHelper -
>>> Datastore: ModelDataStore registered for pc: WorkWeek
>>> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbHelper -
>>> Datastore: ModelDataStore registered for pc: WorkDay
>>> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbHelper -
>>> Datastore: ModelDataStore registered for pc: Task
>>> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbHelper -
>>> Datastore: ModelDataStore registered for pc: Production
>>> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbHelper -
>>> Datastore: ModelDataStore registered for pc: MachineList
>>> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbHelper -
>>> Datastore: ModelDataStore registered for pc: Machine
>>> 3797 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbHelper -
>>> Datastore: ModelDataStore registered for pc: CapacityEntry
>>> 4328 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for days/WorkWeek/days
>>> 4328 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler
>>> - Created getter/setter for WorkWeek/days
>>> 4328 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for days/WorkWeek/days
>>> 4328 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler
>>> - Created getter/setter for WorkWeek/days
>>> 4328 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for workWeekId/WorkWeek/workWeekId
>>> 4328 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for WorkWeek/workWeekId
>>> 4328 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for workWeekId/WorkWeek/workWeekId
>>> 4328 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for WorkWeek/workWeekId
>>> 4328 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler
>>> - Created eContainer property handler
>>> 4328 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler
>>> - Created eContainer property handler
>>> 4344 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler
>>> - Created eContainerFeatureID handler
>>> 4344 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler
>>> - Created eContainerFeatureID handler
>>> 4344 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.tuplizer.EMFInstantiator - Creating
>>> eobject instantiator for WorkWeek and eclass WorkWeek
>>> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for dayOfWeek/WorkDay/dayOfWeek
>>> 4625 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for WorkDay/dayOfWeek
>>> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for dayOfWeek/WorkDay/dayOfWeek
>>> 4625 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for WorkDay/dayOfWeek
>>> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for duration/WorkDay/duration
>>> 4625 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for WorkDay/duration
>>> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for duration/WorkDay/duration
>>> 4625 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for WorkDay/duration
>>> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for startTime/WorkDay/startTime
>>> 4625 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for WorkDay/startTime
>>> 4625 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for startTime/WorkDay/startTime
>>> 4625 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for WorkDay/startTime
>>> 4625 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler
>>> - Created eContainer property handler
>>> 4625 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler
>>> - Created eContainer property handler
>>> 4625 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler
>>> - Created eContainerFeatureID handler
>>> 4625 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler
>>> - Created eContainerFeatureID handler
>>> 4625 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.tuplizer.EMFInstantiator - Creating
>>> eobject instantiator for WorkDay and eclass WorkDay
>>> 4703 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for capacityEntry/Task/capacityEntry
>>> 4703 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EReferenceP ropertyHandler
>>> - Created getter/setter for Task/capacityEntry
>>> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for capacityEntry/Task/capacityEntry
>>> 4719 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EReferenceP ropertyHandler
>>> - Created getter/setter for Task/capacityEntry
>>> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for production/Task/production
>>> 4719 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EReferenceP ropertyHandler
>>> - Created getter/setter for Task/production
>>> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for production/Task/production
>>> 4719 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EReferenceP ropertyHandler
>>> - Created getter/setter for Task/production
>>> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for name/Task/name
>>> 4719 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Task/name
>>> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for name/Task/name
>>> 4719 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Task/name
>>> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for taskId/Task/taskId
>>> 4719 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Task/taskId
>>> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for taskId/Task/taskId
>>> 4719 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Task/taskId
>>> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for timePerPice/Task/timePerPice
>>> 4719 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Task/timePerPice
>>> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for timePerPice/Task/timePerPice
>>> 4719 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Task/timePerPice
>>> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for timePerPreperation/Task/timePerPreperation
>>> 4719 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Task/timePerPreperation
>>> 4719 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for timePerPreperation/Task/timePerPreperation
>>> 4719 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Task/timePerPreperation
>>> 4719 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.tuplizer.EMFInstantiator - Creating
>>> eobject instantiator for Task and eclass Task
>>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for article/Production/article
>>> 4765 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Production/article
>>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for article/Production/article
>>> 4765 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Production/article
>>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for dueTime/Production/dueTime
>>> 4765 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Production/dueTime
>>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for dueTime/Production/dueTime
>>> 4765 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Production/dueTime
>>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for missingAmount/Production/missingAmount
>>> 4765 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Production/missingAmount
>>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for missingAmount/Production/missingAmount
>>> 4765 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Production/missingAmount
>>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for productionId/Production/productionId
>>> 4765 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Production/productionId
>>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for productionId/Production/productionId
>>> 4765 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Production/productionId
>>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for startTime/Production/startTime
>>> 4765 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Production/startTime
>>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for startTime/Production/startTime
>>> 4765 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Production/startTime
>>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for totalAmount/Production/totalAmount
>>> 4765 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Production/totalAmount
>>> 4765 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for totalAmount/Production/totalAmount
>>> 4765 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Production/totalAmount
>>> 4765 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler
>>> - Created eContainer property handler
>>> 4765 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rPropertyHandler
>>> - Created eContainer property handler
>>> 4765 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler
>>> - Created eContainerFeatureID handler
>>> 4765 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rFeatureIDPropertyHandler
>>> - Created eContainerFeatureID handler
>>> 4765 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.tuplizer.EMFInstantiator - Creating
>>> eobject instantiator for Production and eclass Production
>>> 4859 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for machines/MachineList/machines
>>> 4859 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler
>>> - Created getter/setter for MachineList/machines
>>> 4859 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for machines/MachineList/machines
>>> 4859 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler
>>> - Created getter/setter for MachineList/machines
>>> 4859 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.tuplizer.EMFInstantiator - Creating
>>> eobject instantiator for MachineList and eclass MachineList
>>> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for workWeek/Machine/workWeek
>>> 4906 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EReferenceP ropertyHandler
>>> - Created getter/setter for Machine/workWeek
>>> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for workWeek/Machine/workWeek
>>> 4906 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EReferenceP ropertyHandler
>>> - Created getter/setter for Machine/workWeek
>>> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for capacitySearchString/Machine/capacitySearchString
>>> 4906 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Machine/capacitySearchString
>>> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for capacitySearchString/Machine/capacitySearchString
>>> 4906 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Machine/capacitySearchString
>>> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>> property accessor for machineId/Machine/machineId
>>> 4906 [main] DEBUG
>>> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
>>> - Created getter/setter for Machine/machineId
>>> 4906 [main] DEBUG org.eclipse.emf.teneo.hibernate.HbUtil - Creating
>>>
Previous Topic:EContentAdapter behaviour ?
Next Topic:[Announce] EMFT OCL 1.0.1 M200608100853 is available
Goto Forum:
  


Current Time: Thu Jul 17 12:24:34 EDT 2025

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

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

Back to the top