In your class for the table (e.g. TableModel), make
the primary key another class (e.g. TableModelKey). In
TableModel:

/**
* @hibernate.id generator-class="assigned"
*/
public TableModelKey getId()
{
  return this.id;
}

Then create your TableModelKey class with the member
being key_id and f_account_id. Attach xdoclet tags as
usual...

In other words, Xdoclet is smart enough to figure out
you are using a composite-id.

RMC

--- Andreas Wachter <[EMAIL PROTECTED]>
wrote:

> Hello,
> 
> I'm completely new to XDoclet. I want to build DAO
> with Hibernate 2.1.3 
> and I've got the following problem.
> 
> There is a table, whose primarykey is built from two
> columns:
> 
>     CONSTRAINT connections_pkey PRIMARY KEY (key_id,
> f_account_id);
> 
> Now I don't know, how I should configure my Tags for
> Hibernate. Is there 
> someone who can  tell me a possible way?
> 
> 
> BR
> Andreas Wachter
> 
> 
> 
>
-------------------------------------------------------
> This SF.Net email is sponsored by: YOU BE THE JUDGE.
> Be one of 170
> Project Admins to receive an Apple iPod Mini FREE
> for your judgement on
> who ports your project to Linux PPC the best.
> Sponsored by IBM.
> Deadline: Sept. 24. Go here:
> http://sf.net/ppc_contest.php
> _______________________________________________
> xdoclet-user mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
> 



                
__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to