db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tony Winslow" <tonywinslow1...@gmail.com>
Subject Re: How save an array of object in derby
Date Wed, 13 Jun 2007 10:51:48 GMT
Maybe you can do it this way:
   <other cols goes here>



when you want to know the excercises of a
particular scheda, you look up SCH_EX and
from the info retrieved you get to the actual
info stored in EXCERCISE
this is a solution to one-to-many mapping in database.

alternatively, we merge the latter two tables to do it in
a more compact way:


I'm a begginner too, so critics about my answers are welcome!

2007/6/13, Lazarus__ <nicolacogotti@hotmail.com>:
> Hi, i have a problem with my rpoject.
> I have to create a table in derby to save my data.... but this table can
> contain a number of information that is variable. i would know if
> ispossible
> that the column of this table could contain an array of object.
> for i.e
> i have to save something like this
> Scheda 1
> exercise1
> exercise 2
> exercise 3
> .......
> I dunno how much exercise scheda can have so i wanted to know if i can
> create a table like
> create table SCHEDA (name varchar (16) not null, exercises Array not
> null,..
> etc etc)
> Is it possible? there is something like that?
> I need to find the scheda and take all exercise of this one.....
> and i dont want create a table with an overload of columns like
> creae table Scheda (nome varchar (16) not null, exercise1
> varchar(16),...,exercise15 varchar (16),...etc ect).
> Im sorry for my poor english and i hope to be been conprehensive...:p
> Thnx to everybody for ur attantion
> Lazarus__
> --
> View this message in context:
> http://www.nabble.com/How-save-an-array-of-object-in-derby-tf3913712.html#a11096362
> Sent from the Apache Derby Users mailing list archive at Nabble.com.

View raw message