南岛清风 2021-02-20 20:02 采纳率: 50%
浏览 74

我们大一Java作业,貌似是有关JDBC和SOLID的。

Company. Define the hierarchy of IT company employees. Gather employees to carry out the project with a determination of its total cost.

REQUIREMENTS.

1. Use only standard compilers and libraries.

2. When coding, conventions on the design of the code for the corresponding language should be used - code convention.

3. Use the capabilities of OOP: classes, inheritance, polymorphism, encapsulation.

4. Do not use the graphical interface! The application must be console.

5. Work with the console or the console menu should be minimal, since the MAIN OBJECTIVE of the TASK is to CHECK OOP PERCEPTION.

6. Use external data sources: files, DBMS

7. Transfer initialization data of objects using a constructor, function, or method (for example, for Java:

Student ob = new Student (456543, 19, "Smith");

Or use database repositories

8. Provide only the source code of the application. In addition, it is possible to explain in a free but concise form what was done and why.

Comment the whole code

9. Also, to complete the task, you need to study relational databases, and SQL.

10. package name kz.aitu.oop.practice.assignment4  (include sql ddl)

11. send it to github and commit link here. commit message - "My OOP assignment 4 - company

我好不容易学会了java基础,老师就又来了这种类型的题,由于语言不通,老师讲的不是很理解。

貌似是让我们使用接口,连接数据库,使用java语言导入数据,及使用preparedStatement,这些知道一点,但关于各个类接口之间的关系很混乱,不知道该怎么弄,有没有大佬可以讲解一下啊。

  • 写回答

2条回答 默认 最新

  • 南岛清风 2021-02-21 19:06
    关注

     想问一下,有employees和project两个表的话,是多对一的关系,这个在java中怎么用代码表示啊?就是两个表格之间的关系,primary key和foreign key.

    评论

报告相同问题?

悬赏问题

  • ¥15 关于#自动化#的问题:如何通过电脑控制多相机同步拍照或摄影(相机或者摄影模组数量大于60),并将所有采集的照片或视频以一定编码规则存放至规定电脑文件夹内
  • ¥20 深信服vpn-2050这台设备如何配置才能成功联网?
  • ¥15 Arduino的wifi连接,如何关闭低功耗模式?
  • ¥15 Android studio 无法定位adb是什么问题?
  • ¥15 angular项目错误
  • ¥20 需要帮我远程操控一下,运行一下我的那个代码,我觉得我无能为力了
  • ¥20 有偿:在ubuntu上安装arduino以及其常用库文件。
  • ¥15 请问用arcgis处理一些数据和图形,通常里面有一个根据点划泰森多边形的命令,直接划的弊端是只能执行一个完整的边界,但是我们有时候会用到需要在有很多边界内利用点来执行划泰森多边形的命令
  • ¥30 在wave2foam中执行setWaveField时遇到了如下的浮点异常问题,请问该如何解决呢?
  • ¥750 关于一道数论方面的问题,求解答!(关键词-数学方法)