Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo] Identifier for my objects
[Teneo] Identifier for my objects [message #607030] Thu, 21 June 2007 09:43
Gonzalo is currently offline GonzaloFriend
Messages: 27
Registered: July 2009
Junior Member
Hi Martin!

I've designed my model using EMF, and then generated my hibernate.hbm.xml
mapping file using Teneo. This is for a web application.
Here is an excerpt:

<!-- Generated by Teneo on Mon May 07 19:41:00 CEST 2007 -->
<hibernate-mapping>

<class entity-name="Factura" abstract="false" lazy="false"
discriminator-value="Factura" table="`factura`">

<meta attribute="eclassName">Factura</meta>

<meta attribute="epackage">http://productoexpediente.factura</meta>

<id type="long" name="e_id" column="e_id"
access=" org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rPropertyHandler ">

So Teneo creates an id called "e_id", but I haven't any id in my classes.

My question is: Must all my objects extend a class (for example:
"AbstractObject") with an attribute "id"?

If I execute the method findAll() in the DAO, How can I retrieve the
attributes of a particular instance returned by findAll()? I suppose I need
the id of that instance, so how can I get that id to retrieve the other
attributes?

Thank you again!

With regards,

Gonzalo
Previous Topic:[EMF Compare] text compare instead of emf compare
Next Topic:Teneo @Index support
Goto Forum:
  


Current Time: Thu Jan 21 06:17:30 GMT 2021

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

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

Back to the top