Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

What are the JBoss xdoclet tags for an unidirectional Customer-Address
Can anyone tell me what the xdoclet tags are for a unidirectional 1-1
relation between a Customer and an Address in JBoss?

TIA

Joost

Report this thread to moderator Post Follow-up to this message
Old Post
Joost Kraaijeveld
04-11-05 08:57 AM


Re: What are the JBoss xdoclet tags for an unidirectional Customer-Address
Joost Kraaijeveld wrote:
> Can anyone tell me what the xdoclet tags are for a unidirectional 1-1
> relation between a Customer and an Address in JBoss?
>

Here it is (debit = customer and adres = address):
/**
* @ejb.interface-method
* @ejb.relation
*       name="Debit-Adres"
*       role-name="1-debit-1-adres"
*       multiple="no"
*       target-multiple="no"
*       target-cascade-delete="no"
*       target-ejb="Adres"
*       target-role-name="1-adres-1-debit"
* @jboss.relation
*       related-pk-field="adressNr"
*       fk-column="adress_nr"
* @jboss.relation-read-ahead strategy="on-find"
*/
public abstract AdresLocal getAdres();
/**
* @ejb.interface-method
*/
public abstract void setAdres( final AdresLocal adres );

Table debit has a field adress_nr as foreign key column.
Adres_nr is the primary key column for table adres.

Report this thread to moderator Post Follow-up to this message
Old Post
Frank Langelage
04-11-05 08:57 AM


Re: What are the JBoss xdoclet tags for an unidirectional Customer-Address
Hi Frank,


Frank Langelage wrote:
> Here it is (debit = customer and adres = address):
>         /**
...

> Table debit has a field adress_nr as foreign key column.
> Adres_nr is the primary key column for table adres.
Thanks for the useful response.

Joost

Report this thread to moderator Post Follow-up to this message
Old Post
Joost Kraaijeveld
04-12-05 01:58 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Java Beans archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:07 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.