-->
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.  [ 1 post ] 
Author Message
 Post subject: compoiste id and component
PostPosted: Thu Oct 16, 2003 5:02 am 
Newbie

Joined: Mon Sep 01, 2003 10:40 am
Posts: 17
I have many tables with composite id like this:

table 1
cardNumber
fiscalNumber
grupNumber

table2
cardNumber
fiscalNumber
grupNumber
idTable2
fullname

I want make un PkTable1 with cardNumber,fiscalNumber,grupNumber
and a Class1 like this

Code:
public class Class1{
PkTable1 pk = new PkTable1 ;
public void setPktable(PKTable1 pk){this.pk=pk;}
etc..



I want map this tables like this:

Code:
<class name="class1" table="table1">
<composite-id name="id" class="PkTable1 ">
      <key-property name="cardnumber" type="int" column="cardNumber">
    ....
</composite-id>

<component name="pk" class ="PkTable1 ">
<property name="cardNumer" type="int" column="cardNumber">
.....
</component>




Is it possible ?


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

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.