-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: joined-subclass please help
PostPosted: Fri Mar 04, 2005 7:25 am 
Regular
Regular

Joined: Thu Feb 24, 2005 2:34 pm
Posts: 80
Hi i have 2 table one class ModeVO

Code:
<class name="vo.as400.ModeVO" table="sdgtwb_dat.arcmo00f" lazy="false"
           dynamic-update="true"
           dynamic-insert="true"
          >


     <composite-id name="modevopk" class="vo.pk.ModeVOPK" >
              <key-property name="stagmo" column="stagmo" type="string"/>
              <key-property name="modemo" column="modemo" type="string"/>
        </composite-id>

         <discriminator type="string"/>

         <property name="de20mo"  column="de20mo" type="string" not-null="true"/>
         <property name="da30mo" column="da30mo" type="string" not-null="true"/>



second, i have a class ArticleVO extends ModeVO can you help me to mapping ArticleVO please.
I wish then i load an istance to ArticleVO all properties of ModeVO instanziates came.
But but in my case ArticleVO has a coposite-id different with ModeVO.
This is my scenario
ModeVO primary key

stagmo
modemo



ArticleVO primaky key
stagpf
modepf
matepf

Then the relation is stagmo --> stagpf modemo--> modepf


Can you help me please
Devis


Top
 Profile  
 
 Post subject: please can you give some suggestion i'm stop with my work
PostPosted: Fri Mar 04, 2005 10:01 am 
Regular
Regular

Joined: Thu Feb 24, 2005 2:34 pm
Posts: 80
please can you give some suggestion i'm stop with my work thank's
Devis


Top
 Profile  
 
 Post subject: Class structure
PostPosted: Sat Mar 05, 2005 9:47 am 
Newbie

Joined: Thu Feb 24, 2005 3:51 pm
Posts: 9
Location: Montevideo, Uruguay
Devis:
Could you post the Java source of your classes so that I cant get an idea of the relationship between them?

JJ


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 06, 2005 11:51 am 
Regular
Regular

Joined: Thu Feb 24, 2005 2:34 pm
Posts: 80
Ok my legacy data is:


Code:


  public class  ModeVO

   private String stagmo;
   private String modemo;
   private String flagmo;

-------------------------------------------


  public class PfVO extends  ModeVO

   private String stagpf;
   private String modepf;
   private String matepf;
   private String de50pf;



Primary key of ModeVO it's
private String stagmo;
private String modemo;



Primary key of PfVO it's
private String stagpf;
private String modepf;
private String matepf;


The realtion between PfVO and ModeVO must be

<many-to-one>

and the key of this relation is

ModeVO PfVO
stagmo stagpf
modemo modepf


I hope that you can help me to map it this legacy schema.
I don't found documentation about this scenario.
Because as you can see i have 2 Pojo class but with 2 different primary key and PfVO extends ModeVO.
Hope that you can help me, it very urgently for me? sorry for my english.
Devis
Italy


Top
 Profile  
 
 Post subject: Sorry
PostPosted: Sun Mar 06, 2005 6:13 pm 
Newbie

Joined: Thu Feb 24, 2005 3:51 pm
Posts: 9
Location: Montevideo, Uruguay
I'm sorry Devis, but I can't help you with this. It goes beyond my knowledge.

JJ


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.