• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NX: could I create new db file?

 
Along huang
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,everybody.
My assignment is URLybird, I found that here was only one db file named db-1x2.db in the application distribution, but I thought that the application need more data schemas, such as "Hotel" schema,"City" schema.

meanwhile keeping the original db-1x2.db, whether I can create a new db file and allocate the new schema in that?

best regard
 
Javini Javono
Ranch Hand
Posts: 286
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I think the intention of Sun is that your application is to use their
file as input, and only their file, even if it should be thought that
the file format is not the best possible.

You can, of course, copy the file and rename it, and you can even
write software which generates such a file, but the file "must be
the same" with respect to the header and how the records are
laid out within it.

Thanks,
Javini Javono
 
Along huang
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for reply.

I don't suspect whether the data format is the best one.

because I think that the data fields given by Sun is not enough for the application, e.g., user (i.e.CSR) must have a account to login, system have a database schemea to save account records, in this case, where should I put the database schema? it is impossable to put it in db-1x2.db file, so I must create a new file to contain that database schema.

now the problem is I don't know whether Sun permit examinee to create new database file.

please help me

thanks
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12014
220
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Along,

Welcome to JavaRanch and this forum.

In a real life application you probably would need all those additional tables and schemas, however they are not necessary for this assignent, and I would advise against creating them, as "You will not receive extra credit points for work beyond the requirements of the specification" (as specified in the instructions).

Regards, Andrew
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic