开发者

Any idea on how to implement these database tables to Java?

开发者 https://www.devze.com 2023-01-17 22:45 出处:网络
I\'ve started to develop my own mini project in restaurant reservation to improve my Java skills. At the moment, I create a table consists of

I've started to develop my own mini project in restaurant reservation to improve my Java skills.

At the moment, I create a table consists of

  • number of tables in the restaurant (column)

  • and time interval during the day

    (row).

So for example, if someone booked a table at 11:00 on Table 4, that cell will become reserved and mark as booked. And i should be able to separate the table of each day to be their own table so that i can select to view the today table or tomorrow table.

I开发者_运维知识库 created 3 MySQL table; 'customer', 'seat', and 'booking' table. Detail of each table in the fixture below.

The Problem is i have the idea on what i want to do, but i have no idea on how to bind the data from each table to the table in Netbeans. (I'm using NetBeans).

I'm asking for your idea on how to implement this!

Please see the images below.

Any idea on how to implement these database tables to Java?

Any idea on how to implement these database tables to Java?


If you are trying to improve your skills, I would recommend to take a look to basic JDBC, for it is the base of database usage on Java. Once you have mastered that, you can go for EJB, hibernate & everything...

So now, you should read about JDBC, PreparedStatement, Connections, and if you are aiming web, Connection Pooling... (this would be a start to JDBC)

Good luck


You can use EJB 3 for that. Netbeans provide stubs generation from the tables you create.

0

精彩评论

暂无评论...
验证码 换一张
取 消