Menu

many-to-many-relations

Help
2001-11-02
2001-11-05
  • Börries Ludwig

    Börries Ludwig - 2001-11-02

    Hi,

    I am new to this list, but I did not find this questions, only one about "relations".

    My question is simple: does Osage support many-to-many relations ?

    E.g.:

    public class Url{
    private String url= null;   
    private Vector keywords    =new Vector();}

    public class Keyword {
    private String keyword = null;
    private Vector urls = new Vector();}

    maps to following database-tables:

    create table url (
    Url CHAR(120) NOT NULL,
    Uid CHAR(22) NOT NULL,
    );

    create unique index url_ui on url (Url);

    create table urlkeyword (
    Url CHAR(22) NOT NULL,   
    Keyword CHAR(22) NOT NULL);

    create table keyword (
    Uid CHAR(22) NOT NULL,
    Keyword    CHAR(40) NOT NULL);)

    I could not get this simple example to run. I could only find onetoone examples.

    Another minor question is, does Osage runs in VisualAge 3.5 ?

    Help is very welcome

    Boerries

     
    • george w. stewart

      Hi,

      There's no support for many-to-many.

      You can find support for this in castor at castor.exolab.org.  I recommend using castor as I'm not now doing any work on osage, and castor has more features.

      Regards, george

       

Log in to post a comment.