You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 7, 2019. It is now read-only.
Avoid loading of same object more than once. Check how global objects list can be used to achieve it. Maybe it should be used in other CRUD methods too?
Sample loop in database structure:
DROPDATABASE EMPLOYEES;
CREATEDATABASEEMPLOYEES;
USE EMPLOYEES;
CREATETABLECOMPANY (
ID INTNOT NULL AUTO_INCREMENT PRIMARY KEY,
COMPANYNAME VARCHAR(30),
EMPLOYEE INT);
CREATETABLEEMPLOYEE (
ID INTNOT NULL AUTO_INCREMENT PRIMARY KEY,
FIRSTNAME VARCHAR(10),
LASTNAME VARCHAR(20),
BIRTHDAY DATE,
GENDER VARCHAR(6),
COMPANY INT,
HIREDATE TIMESTAMP,
SALARY DOUBLE,
CHILDREN INT,
FOREIGN KEY(COMPANY) REFERENCES COMPANY(ID));
ALTERTABLE COMPANY ADD FOREIGN KEY (EMPLOYEE) REFERENCES EMPLOYEE(ID);
COMMIT;
New interface needs to be created. Objects synchronized with database should be stored in map or structure like it.
The text was updated successfully, but these errors were encountered: