Martin Taal | 19 Sep 08:58

Mailinglist disabled, please use EMFT newsgroup: news://news.eclipse.org/eclipse.technology.emft

Hi,
This mailinglist has been disabled. It is not possible anymore to send emails to this mailinglist.

Please use the following newsgroup for posting questions regarding Elver/Teneo:
news://news.eclipse.org/eclipse.technology.emft

This mailinglist has been archived here:
http://blog.gmane.org/gmane.comp.java.emf.persistency

--

-- 

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@... - mtaal@...
Web: www.springsite.com - www.elver.org

Gertjan Idema | 18 Sep 23:22
Picon

org.hibernate.MappingException: invalid mapping

I just ran into what seems a minor bug in Elver/Teneo. I was curious about
what would happen if I tried to build a hibernate mapping for the
EcorePackage itself.
When I tried this, I got the "org.hibernate.MappingException: invalid
mapping" message.
Looking at the generated XML, I found a <list-index> element inside a <map>
element which violates the DTD.
Though my case was quite exceptional, it might happen in other, more common
cases.

Gertjan Idema

		<map name="details" lazy="true" cascade="all,delete-orphan">
			<key update="true">
				<column name="`details_id`" not-null="false"
unique="false"/>
			</key>
			<list-index column="`eannotation_details_idx`"/>
			<map-key column="KEY" type="java.lang.String"/>
			<element column="VALUE" type="java.lang.String"/>
		</map>

--

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.12.4/449 - Release Date: 15-09-2006

Martin Taal | 14 Sep 23:52

Release Update - Moved to EMFT: builds and support

Hi,
Elver persistency has now been moved to EMFT as the Teneo project. The first Teneo build is 
available here:
http://download.eclipse.org/technology/emft/downloads/?proj=teneo

 From now on there will be builds on a regular (probably weekly) basis.

The elver.org update site has been disabled, the new update site is:
http://download.eclipse.org/technology/emft/updates/site-interim.xml

Support is from now only given on the EMFT newsgroup:
news://news.eclipse.org/eclipse.technology.emft

The Elver mailinglist is discontinued (gmane archive remains available)

The documentation for Teneo will remain on the elver.org website (for a while atleast).

Summary of the changes in the Teneo build:
- We have changed the way annotations can be specified, in our view the syntax was to verbose. There
are now two new ways of specifying jpa annotations: 1) Java style annotations in the model itself
(in the EAnnotations), 2) XML: annotations can be specified in a separate xml document. The previous
syntax will be phased out in the coming releases.
- Support for a few extra annotations has been added.
- Solved a few bugs.
- Teneo is only tested with the Callisto release and for EMF 2.2. Eclipse 3.1 and emf 2.1 are not
supported anymore but may work.
- Support for jpox has been upgraded to 1.1.1. We will look at 1.1.2 the coming weeks.
- Package names have changed from org.elver.store.jpox/org.elver.store.hibernate to
org.eclipse.emf.teneo.jpox and org.eclipse.emf.teneo.hibernate.
- The buddypolicy of the plugins has changed so it is not necessary anymore to set a
(Continue reading)

Alex Gfeller | 13 Sep 18:46

Detached objects are marked as dirty

Dear all,

We have a problems with detached objects which comes back from a client.
When they are reattached to the hibernate session, the objects are marked as
dirty by hibernate and the version property is incremented and whole stuff is
saved to the database.

Is this a known problem or do we do something wrong?

Thanks for any help,
Alex

Chang | 13 Sep 01:34
Picon
Favicon

Elver as standalone

Can I run Elver as a standalone module together with the EMS runtime 
(standalone) module?  I am developing a runtime MOF repository and am hoping 
that I can run EMF runtime and Elver in a non-Eclipse server environment.

Thanks in advanced!

Hui Gao | 2 Sep 11:25
Picon

lazy = "true"

Hi Martin,

thank you ver much for the soon answer.

The many selects are caused by the single association. The problem is: in a 
query,  more than 7000 objects KomKa are fetched. KomKa has a FK to Object 
Betreiber, so more than 7000 selects are created to select object Betreiber.

I attaced the part of the mapping file and the tracing

By the way: we must use old database and there is no column need by a list 
for sorting. So I use bag and not list for the collection.

Best regards,

Hui 

begin 666 Elvertrace.txt
M2&EB97)N871E($UA<'!I;F<@9FEL93H-"@T*/&-L87-S(&5N=&ET>2UN86UE
M/2)+;VU+82(@;&%Z>3TB9F%L<V4B('1A8FQE/2)+3TU?2T$B/@T*#0H\:60@
M;F%M93TB86)W06YL260B('5N<V%V960M=F%L=64](C B(&-O;'5M;CTB04)7
M7T%.3%])1"(@#0H-"G1Y<&4](FEN="(^/&=E;F5R871O<B!C;&%S<STB;F%T
M:79E(B\^/"]I9#X@#0H-"BXN+BXN+BX-"CQM86YY+71O+6]N92!N86UE/2)A
M8G="97-E:7109FQI260B(&5N=&ET>2UN86UE/2)"971R96EB97(B( T*#0IC
M87-C861E/2)P97)S:7-T+"!M97)G92P@<V%V92UU<&1A=&4L(&QO8VLL(')E
M9G)E<V <at> B('5P9&%T93TB=')U92(@;F]T+6YU;&P](F9A;'-E(CX@#0H-"CQC
M;VQU;6X@;F%M93TB04)77T)%4T5)5%]01DQ)7TE$(B\^( T*#0H\+VUA;GDM
M=&\M;VYE/@T*#0HN+BX-"@T*/&UA;GDM=&\M;VYE(&YA;64](F)E=')E:4ED
M(B!E;G1I='DM;F%M93TB0F5T<F5I8F5R(B -"@T*8V%S8V%D93TB<&5R<VES
M="P@;65R9V4L('-A=F4M=7!D871E+"!L;V-K+"!R969R97-H(B!U<&1A=&4]
(Continue reading)

Douglas Bitting | 1 Sep 21:20

Persisting Ecore definitions?

OK, here’s a somewhat interesting question.  Has anyone given any thought as to how to persist Ecore definitions?  Say I want to define a system where Ecore definitions are definable at runtime, along with all their persistable attributes.  The next time the system starts up, these Ecore definitions can be read in from the database and bootstrapped into the Teneo environment.  I can setup the annotations on the Ecore.ecore definition, but it clearly is not designed with RDBMS persistence in mind as there are no surrogate keys, no versioning, etc.

 

Anyway, just a thought.

 

Thanks,

--Doug

Hui Gao | 1 Sep 17:13
Picon

lazy="true" in hibernate mapping

Hi Martin,

an another question today:

If I set lazy = "true" in the mappingfile, I get the NullPointException:

at 
org.hibernate.tuple.AbstractEntityTuplizer.createProxy(AbstractEntityTuplizer.java:372)

If I set the lazy ="false", in case if there are much data from a query, the 
Exception:
     ORA-01000: Maximale Anzahl offener Cursor überschritten

Reason: all the associated objects are loaded,  thounds selects are called.

How can I stop to load the assoicated objects by a query?

Thanks for your help and have a nice weekend!

Hui 

Hui Gao | 1 Sep 10:23
Picon

How can I set the property 'hibernate.jdbc.batch_size'

Hi Martin,

I use Elver connected with the HSQLDB. I want to set 
hibernate.jdbc.batch_size with  0 (otherwise I can not use saveOrUpdate()).

How can I set this property? I could not find the option with the 
.setProperty(Einviroment....) .

An another question: is there a possibility to define in the 
hibernate.hbm.xml file, for which class a database table shoud be created, 
and or another class should no table be created?

Thanks for the help.

Hui 

Martin Taal | 1 Sep 02:04

Java JPA Annotation Syntax Support

Hi,
For those on the svn version and willing to try things out.

I have added the possibility to specify jpa annotations using the java source code syntax. This 
makes it probably much easier to specify jpa annotations in the model.
To use this format the eannotation should have the source teneo.jpa (or teneo.hibernate for 
hibernate specific annotations).
As an example for (in xml schema):
   <xsd:complexType name="Printer">
  	<xsd:annotation>
		<xsd:appinfo source="teneo.jpa">
			@SecondaryTable(name="THETONER"
				pkJoinColumns={@PrimaryKeyJoinColumn(name="PRINTER_ID")})
		</xsd:appinfo>
     </xsd:annotation>
     <xsd:sequence>....</sequence>

other example:

       <xsd:element name="tonerMake" type="xsd:string">
	 	<xsd:annotation>
			<xsd:appinfo source="teneo.jpa">@Column(table="THETONER")</xsd:appinfo>
	    </xsd:annotation>
       </xsd:element>

more complex Hibernate specific example:

		<xsd:appinfo source="teneo.hibernate">
@GenericGenerator(name="hibseq", strategy = "hilo",
     parameters = {
         @Parameter(name="table", value = "hilo_table"),
         @Parameter(name="column", value="the_hilo_column")
     }
)
		</xsd:appinfo>

The previous eannotation sources (http://annotation.elver.org/, http://ejb.elver.org) will remain
to 
work with the old format.
The eannotations with the sources teneo.jpa, teneo.hibernate. teneo.mapping will work with the new 
format.

This java jpa annotation syntax has not yet been tested thoroughly.

Feedback is as always welcome.

--

-- 

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@... - mtaal@...
Web: www.springsite.com - www.elver.org

Martin Taal | 29 Aug 18:09

Re: Typo in MANIFEST and missing context menu

Hi Steffen,
Yes I upgraded Teneo to jpox 1.1.1 last week. Note this issue however:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=154757

Regarding the menu option. I did not get to looking at that part for Teneo. I am currently working 
at how to do class enhancement on the emft build server. I appreciate it if you can help me solve 
this (saves some work on my side). Did you look in the eclipse log to see if something is wrong there?

For the rest see another email on the mailing list about the differences between elver and teneo, 
there is also a small description on the elver website.

Thanks for the typo-tip, fyi the word qualifier is replaced by a date tag when teneo is build.

gr. Martin

Steffen Neumann wrote:
> Hi,
> 
> just a little update:
> Schema creation went fine, and things are fine on the laptop 
> with postgres, but now I figured I need a newer JPOX 
> to support Oracle BLOB handling on the real machine :-(
> 
> I decided to jump-start to teneo, and things went fairly smooth.
> I found a little typo:
> 
> /cvsroot/technology/org.eclipse.emft/teneo/plugins/org.eclipse.emf.teneo.libraries/META-INF/MANIFEST.MF
> retrieving revision 1.2
> diff -r1.2 MANIFEST.MF
> 5c5
> < Bundle-Version: 0.7.5.qualiifier
> ---
>> Bundle-Version: 0.7.5.qualifier
> 
> I have things now mostly set up,
> but I am missing the context menu entry 
> to create the Mapping file package.jdo
> 
> Yours,
> Steffen
> 
> org.eclipse.emf.teneo (0.7.5.200608291748) "Teneo" [Resolved]
> org.eclipse.emf.teneo.annotations (0.7.5.200608291748) "Teneo Annotations" [Resolved]
> org.eclipse.emf.teneo.eclipse (0.7.5.200608291748) "Teneo Eclipse UI" [Resolved]
> org.eclipse.emf.teneo.jpox (0.7.5.200608291748) "Teneo JPOX" [Resolved]
> org.eclipse.emf.teneo.jpox.eclipse (0.7.5.200608291748) "Teneo JPOX Eclipse UI" [Resolved]
> org.eclipse.emf.teneo.jpox.enhanced (0.7.5.200608291748) "Plugin.name" [Resolved]
> org.eclipse.emf.teneo.libraries (0.7.5.200608291748) "Teneo Libraries" [Resolved]
> 
> 
> Yours,
> Steffen
> 

--

-- 

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@... - mtaal@...
Web: www.springsite.com - www.elver.org


Gmane