├── .idea ├── .gitignore ├── vcs.xml ├── misc.xml ├── modules.xml └── uiDesigner.xml ├── images ├── login.png ├── veritabanı.png ├── addreservation.png └── Turizm Acente 2024-04-30 21-41-19.mp4 ├── src ├── postgresql-42.7.3 (1).jar ├── view │ ├── SeasonView.java │ ├── SeasonView.form │ ├── Layout.java │ ├── FeatureView.java │ ├── PensionView.java │ ├── LoginView.java │ ├── RoomView.java │ ├── UserView.java │ ├── PensionView.form │ ├── FeatureView.form │ ├── ReservationView.java │ ├── RoomView.form │ ├── UserView.form │ ├── OtelView.java │ ├── LoginView.form │ ├── ReservationView.form │ ├── OtelView.form │ ├── EmployeeView.form │ ├── EmployeeView.java │ ├── AdminView.form │ └── AdminView.java ├── App.java ├── core │ ├── JListItem.java │ ├── ComboItem.java │ ├── Db.java │ └── Helper.java ├── entity │ ├── Feature.java │ ├── Pension.java │ ├── Room.java │ ├── Season.java │ ├── User.java │ ├── Reservation.java │ └── Otel.java ├── business │ ├── SeasonManager.java │ ├── PensionManager.java │ ├── FeatureManager.java │ ├── RoomManager.java │ ├── UserManager.java │ ├── ReservationManager.java │ └── OtelManager.java └── dao │ ├── SeasonDao.java │ ├── PensionDao.java │ ├── FeatureDao.java │ ├── RoomDao.java │ ├── UserDao.java │ ├── ReservationDao.java │ └── OtelDao.java ├── .gitignore ├── TurizmAcenteProjesi.iml ├── README.md └── turizmacente.sql /.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | -------------------------------------------------------------------------------- /images/login.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Snmzgrkn/Turizm_Acente_Sistemi/HEAD/images/login.png -------------------------------------------------------------------------------- /images/veritabanı.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Snmzgrkn/Turizm_Acente_Sistemi/HEAD/images/veritabanı.png -------------------------------------------------------------------------------- /images/addreservation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Snmzgrkn/Turizm_Acente_Sistemi/HEAD/images/addreservation.png -------------------------------------------------------------------------------- /src/postgresql-42.7.3 (1).jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Snmzgrkn/Turizm_Acente_Sistemi/HEAD/src/postgresql-42.7.3 (1).jar -------------------------------------------------------------------------------- /images/Turizm Acente 2024-04-30 21-41-19.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Snmzgrkn/Turizm_Acente_Sistemi/HEAD/images/Turizm Acente 2024-04-30 21-41-19.mp4 -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ### IntelliJ IDEA ### 2 | out/ 3 | !**/src/main/**/out/ 4 | !**/src/test/**/out/ 5 | 6 | ### Eclipse ### 7 | .apt_generated 8 | .classpath 9 | .factorypath 10 | .project 11 | .settings 12 | .springBeans 13 | .sts4-cache 14 | bin/ 15 | !**/src/main/**/bin/ 16 | !**/src/test/**/bin/ 17 | 18 | ### NetBeans ### 19 | /nbproject/private/ 20 | /nbbuild/ 21 | /dist/ 22 | /nbdist/ 23 | /.nb-gradle/ 24 | 25 | ### VS Code ### 26 | .vscode/ 27 | 28 | ### Mac OS ### 29 | .DS_Store -------------------------------------------------------------------------------- /src/view/SeasonView.java: -------------------------------------------------------------------------------- 1 | package view; 2 | 3 | import business.SeasonManager; 4 | import entity.Season; 5 | 6 | import javax.swing.*; 7 | 8 | public class SeasonView extends Layout{ 9 | private JPanel container; 10 | private Season season; 11 | private SeasonManager seasonManager; 12 | public SeasonView(Season season){ 13 | this.seasonManager = new SeasonManager(); 14 | this.add(container); 15 | this.guiInitilaze(300,400); 16 | this.season = season; 17 | 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/App.java: -------------------------------------------------------------------------------- 1 | import business.UserManager; 2 | import core.Db; 3 | import core.Helper; 4 | import entity.User; 5 | import view.AdminView; 6 | import view.LoginView; 7 | 8 | import javax.swing.*; 9 | import java.sql.Connection; 10 | 11 | public class App { 12 | public static void main(String[] args) { 13 | Helper.setTheme(); 14 | LoginView loginView = new LoginView(); 15 | //UserManager userManager = new UserManager(); 16 | //AdminView adminView = new AdminView(userManager.findByLogin("gsonmez","12345")); 17 | } 18 | } -------------------------------------------------------------------------------- /src/core/JListItem.java: -------------------------------------------------------------------------------- 1 | package core; 2 | 3 | public class JListItem { 4 | private int key; 5 | private String value; 6 | 7 | public JListItem(int key, String value) { 8 | this.key = key; 9 | this.value = value; 10 | } 11 | 12 | public int getKey() { 13 | return key; 14 | } 15 | 16 | public String getValue() { 17 | return value; 18 | } 19 | public String getDeger(){ 20 | return this.value; 21 | } 22 | 23 | @Override 24 | public String toString() { 25 | return value; 26 | } 27 | } -------------------------------------------------------------------------------- /src/view/SeasonView.form: -------------------------------------------------------------------------------- 1 | 2 |
3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | -------------------------------------------------------------------------------- /src/entity/Feature.java: -------------------------------------------------------------------------------- 1 | package entity; 2 | 3 | public class Feature { 4 | private int id; 5 | private String name; 6 | 7 | public Feature(int id, String name) { 8 | this.id = id; 9 | this.name = name; 10 | } 11 | public Feature(String name) { 12 | this.name = name; 13 | } 14 | 15 | public Feature() { 16 | } 17 | 18 | public int getId() { 19 | return id; 20 | } 21 | 22 | public void setId(int id) { 23 | this.id = id; 24 | } 25 | 26 | public String getName() { 27 | return name; 28 | } 29 | 30 | public void setName(String name) { 31 | this.name = name; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/entity/Pension.java: -------------------------------------------------------------------------------- 1 | package entity; 2 | 3 | public class Pension { 4 | private int id; 5 | private String name; 6 | 7 | public Pension(int id, String name) { 8 | this.id = id; 9 | this.name = name; 10 | } 11 | public Pension(String name) { 12 | this.name = name; 13 | } 14 | 15 | public Pension() { 16 | } 17 | 18 | public int getId() { 19 | return id; 20 | } 21 | 22 | public void setId(int id) { 23 | this.id = id; 24 | } 25 | 26 | public String getName() { 27 | return name; 28 | } 29 | 30 | public void setName(String name) { 31 | this.name = name; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /TurizmAcenteProjesi.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /src/core/ComboItem.java: -------------------------------------------------------------------------------- 1 | package core; 2 | 3 | public class ComboItem { 4 | private int key; 5 | private String value; 6 | private int price; 7 | public ComboItem(int key,String value,int price){ 8 | this.key=key; 9 | this.value=value; 10 | this.price=price; 11 | } 12 | 13 | public ComboItem(int key,String value){ 14 | this.key=key; 15 | this.value=value; 16 | } 17 | 18 | public int getKey() { 19 | return key; 20 | } 21 | 22 | public void setKey(int key) { 23 | this.key = key; 24 | } 25 | 26 | public String getValue() { 27 | return value; 28 | } 29 | 30 | public void setValue(String value) { 31 | this.value = value; 32 | } 33 | 34 | @Override 35 | public String toString() { 36 | return value; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/entity/Room.java: -------------------------------------------------------------------------------- 1 | package entity; 2 | 3 | public class Room { 4 | private int id; 5 | private String name; 6 | private int price; 7 | private int stock; 8 | 9 | public int getStock() { 10 | return stock; 11 | } 12 | 13 | public void setStock(int stock) { 14 | this.stock = stock; 15 | } 16 | 17 | public Room(String name, int price, int stock) { 18 | this.name = name; 19 | this.price = price; 20 | this.stock=stock; 21 | } 22 | public Room(int id, String name, int price,int stock) { 23 | this.id = id; 24 | this.name = name; 25 | this.price = price; 26 | this.stock=stock; 27 | } 28 | 29 | public Room() { 30 | 31 | } 32 | 33 | public int getId() { 34 | return id; 35 | } 36 | 37 | public void setId(int id) { 38 | this.id = id; 39 | } 40 | 41 | public String getName() { 42 | return name; 43 | } 44 | 45 | public void setName(String name) { 46 | this.name = name; 47 | } 48 | 49 | public int getPrice() { 50 | return price; 51 | } 52 | 53 | public void setPrice(int price) { 54 | this.price = price; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/core/Db.java: -------------------------------------------------------------------------------- 1 | package core; 2 | 3 | import java.io.FileInputStream; 4 | import java.io.FileNotFoundException; 5 | import java.io.IOException; 6 | import java.sql.Connection; 7 | import java.sql.DriverManager; 8 | import java.sql.SQLException; 9 | import java.util.Properties; 10 | 11 | public class Db { 12 | //Singleton Design Pattern 13 | private static Db instance = null; 14 | private Connection connection; 15 | private final String DB_URL="jdbc:postgresql://localhost:5432/turizmacente"; 16 | private final String DB_USERNAME="postgres"; 17 | private final String DB_PASS = "1"; 18 | 19 | public Db(){ 20 | try{ 21 | this.connection = DriverManager.getConnection(DB_URL,DB_USERNAME,DB_PASS); 22 | }catch (SQLException e){ 23 | e.printStackTrace(); 24 | } 25 | } 26 | 27 | public Connection getConnection() { 28 | return connection; 29 | } 30 | 31 | public static Connection getInstance() { 32 | try { 33 | if(instance ==null || instance.getConnection().isClosed()){ 34 | instance = new Db(); 35 | } 36 | }catch (SQLException e){ 37 | System.out.println(e.getMessage()); 38 | } 39 | 40 | return instance.getConnection(); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/business/SeasonManager.java: -------------------------------------------------------------------------------- 1 | package business; 2 | 3 | import core.Helper; 4 | import dao.FeatureDao; 5 | import dao.SeasonDao; 6 | import entity.Feature; 7 | import entity.Season; 8 | 9 | import java.util.ArrayList; 10 | 11 | public class SeasonManager { 12 | private final SeasonDao seasonDao; 13 | 14 | public SeasonManager(){ 15 | this.seasonDao=new SeasonDao(); 16 | } 17 | 18 | public ArrayList findAll(){ 19 | return this.seasonDao.findAll(); 20 | } 21 | public boolean save(Season season){ 22 | if(season.getId() != 0){ 23 | Helper.showMessage("error"); 24 | } 25 | return this.seasonDao.save(season); 26 | } 27 | 28 | public Season findById(int id){ 29 | return this.seasonDao.findById(id); 30 | } 31 | 32 | public ArrayList getForTable(int size){ 33 | ArrayList seasonRowList = new ArrayList<>(); 34 | for(Season season : this.findAll()){ 35 | Object[] rowObject = new Object[size]; 36 | int i =0; 37 | rowObject[i++] = season.getId(); 38 | rowObject[i++] = season.getName(); 39 | rowObject[i++] = season.getStartDate(); 40 | rowObject[i++] = season.getEndDate(); 41 | rowObject[i++] = season.getRateMultiplier(); 42 | seasonRowList.add(rowObject); 43 | } 44 | return seasonRowList; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/view/Layout.java: -------------------------------------------------------------------------------- 1 | package view; 2 | 3 | import core.Helper; 4 | 5 | import javax.swing.*; 6 | import javax.swing.table.DefaultTableModel; 7 | import java.util.ArrayList; 8 | 9 | public class Layout extends JFrame { 10 | public void guiInitilaze(int width,int height){ 11 | this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); 12 | this.setTitle("Turizm Acente"); 13 | this.setSize(width,height); 14 | this.setLocation(Helper.getLocationPoint("x",this.getSize()),Helper.getLocationPoint("y",this.getSize())); 15 | this.setVisible(true); 16 | } 17 | 18 | public void createTable(DefaultTableModel model, JTable table, Object[] columns, ArrayList rows){ 19 | model.setColumnIdentifiers(columns); 20 | table.setModel(model); 21 | table.getTableHeader().setReorderingAllowed(false); 22 | table.getColumnModel().getColumn(0).setMaxWidth(75); 23 | table.setEnabled(false); 24 | 25 | DefaultTableModel clearModel =(DefaultTableModel) table.getModel(); 26 | clearModel.setRowCount(0); 27 | 28 | if(rows == null){ 29 | rows = new ArrayList<>(); 30 | } 31 | 32 | for(Object[] row : rows){ 33 | model.addRow(row); 34 | } 35 | } 36 | 37 | public int getTableSelectedRow(JTable table, int index){ 38 | return Integer.parseInt(table.getValueAt(table.getSelectedRow(),index).toString()); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/entity/Season.java: -------------------------------------------------------------------------------- 1 | package entity; 2 | 3 | import java.time.LocalDate; 4 | import java.util.Date; 5 | 6 | public class Season { 7 | private int id; 8 | private String name; 9 | private LocalDate startDate; 10 | private LocalDate endDate; 11 | private double rateMultiplier; 12 | 13 | public Season(int id, String name, LocalDate startDate, LocalDate endDate, double rateMultiplier) { 14 | this.id = id; 15 | this.name = name; 16 | this.startDate = startDate; 17 | this.endDate = endDate; 18 | this.rateMultiplier = rateMultiplier; 19 | } 20 | 21 | public Season() { 22 | } 23 | 24 | public int getId() { 25 | return id; 26 | } 27 | 28 | public void setId(int id) { 29 | this.id = id; 30 | } 31 | 32 | public String getName() { 33 | return name; 34 | } 35 | 36 | public void setName(String name) { 37 | this.name = name; 38 | } 39 | 40 | public LocalDate getStartDate() { 41 | return startDate; 42 | } 43 | 44 | public void setStartDate(LocalDate startDate) { 45 | this.startDate = startDate; 46 | } 47 | 48 | public LocalDate getEndDate() { 49 | return endDate; 50 | } 51 | 52 | public void setEndDate(LocalDate endDate) { 53 | this.endDate = endDate; 54 | } 55 | 56 | public double getRateMultiplier() { 57 | return rateMultiplier; 58 | } 59 | 60 | public void setRateMultiplier(double rateMultiplier) { 61 | this.rateMultiplier = rateMultiplier; 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /src/business/PensionManager.java: -------------------------------------------------------------------------------- 1 | package business; 2 | 3 | import core.Helper; 4 | import dao.OtelDao; 5 | import dao.PensionDao; 6 | import entity.Otel; 7 | import entity.Pension; 8 | 9 | import java.util.ArrayList; 10 | 11 | public class PensionManager { 12 | private final PensionDao pensionDao; 13 | 14 | public PensionManager(){ 15 | this.pensionDao=new PensionDao(); 16 | } 17 | 18 | public ArrayList findAll(){ 19 | return this.pensionDao.findAll(); 20 | } 21 | public boolean save(Pension pension){ 22 | if(pension.getId() != 0){ 23 | Helper.showMessage("error"); 24 | } 25 | return this.pensionDao.save(pension); 26 | } 27 | 28 | public Pension findById(int id){ 29 | return this.pensionDao.findById(id); 30 | } 31 | 32 | public boolean update(Pension pension){ 33 | if(this.findById(pension.getId()) == null){ 34 | Helper.showMessage("notfound"); 35 | } 36 | return this.pensionDao.update(pension); 37 | } 38 | public boolean delete(int id){ 39 | if(this.findById(id)==null){ 40 | Helper.showMessage(id+" ID kayıtlı marka bulunmadı."); 41 | return false; 42 | } 43 | return this.pensionDao.delete(id); 44 | } 45 | public ArrayList getForTable(int size){ 46 | ArrayList pensionRowList = new ArrayList<>(); 47 | for(Pension pension : this.findAll()){ 48 | Object[] rowObject = new Object[size]; 49 | int i =0; 50 | rowObject[i++] = pension.getId(); 51 | rowObject[i++] = pension.getName(); 52 | pensionRowList.add(rowObject); 53 | } 54 | return pensionRowList; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/view/FeatureView.java: -------------------------------------------------------------------------------- 1 | package view; 2 | 3 | import business.FeatureManager; 4 | import core.Helper; 5 | import entity.Feature; 6 | import entity.Pension; 7 | 8 | import javax.swing.*; 9 | 10 | public class FeatureView extends Layout { 11 | private JPanel container; 12 | private JLabel lbl_feature; 13 | private JLabel lbl_feature_name; 14 | private JTextField fld_feature_name; 15 | private JButton btn_feature_save; 16 | private Feature feature; 17 | private FeatureManager featureManager; 18 | 19 | public FeatureView(Feature feature){ 20 | this.featureManager = new FeatureManager(); 21 | this.add(container); 22 | this.guiInitilaze(300,200); 23 | this.feature = feature; 24 | 25 | if(feature != null){ 26 | this.fld_feature_name.setText(feature.getName()); 27 | } 28 | 29 | btn_feature_save.addActionListener(e -> { 30 | if(Helper.isFieldEmpty(this.fld_feature_name)){ 31 | Helper.showMessage("fill"); 32 | }else { 33 | boolean result = true; 34 | if(this.feature == null){ 35 | Feature obj = new Feature(fld_feature_name.getText()); 36 | result = this.featureManager.save(obj); 37 | }else { 38 | this.feature.setName(fld_feature_name.getText()); 39 | result = this.featureManager.update(this.feature); 40 | } 41 | 42 | if (result){ 43 | Helper.showMessage("Feature saved successfully."); 44 | dispose(); 45 | }else { 46 | Helper.showMessage("error"); 47 | } 48 | } 49 | }); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /src/business/FeatureManager.java: -------------------------------------------------------------------------------- 1 | package business; 2 | 3 | import core.Helper; 4 | import dao.FeatureDao; 5 | import dao.OtelDao; 6 | import entity.Feature; 7 | import entity.Otel; 8 | import entity.Pension; 9 | 10 | import java.util.ArrayList; 11 | 12 | public class FeatureManager { 13 | private final FeatureDao featureDao; 14 | 15 | public FeatureManager(){ 16 | this.featureDao=new FeatureDao(); 17 | } 18 | 19 | public ArrayList findAll(){ 20 | return this.featureDao.findAll(); 21 | } 22 | public boolean save(Feature feature){ 23 | if(feature.getId() != 0){ 24 | Helper.showMessage("error"); 25 | } 26 | return this.featureDao.save(feature); 27 | } 28 | 29 | public Feature findById(int id){ 30 | return this.featureDao.findById(id); 31 | } 32 | 33 | public boolean update(Feature feature){ 34 | if(this.findById(feature.getId()) == null){ 35 | Helper.showMessage("notfound"); 36 | } 37 | return this.featureDao.update(feature); 38 | } 39 | public boolean delete(int id){ 40 | if(this.findById(id)==null){ 41 | Helper.showMessage(id+" ID kayıtlı marka bulunmadı."); 42 | return false; 43 | } 44 | return this.featureDao.delete(id); 45 | } 46 | public ArrayList getForTable(int size){ 47 | ArrayList featureRowList = new ArrayList<>(); 48 | for(Feature feature : this.findAll()){ 49 | Object[] rowObject = new Object[size]; 50 | int i =0; 51 | rowObject[i++] = feature.getId(); 52 | rowObject[i++] = feature.getName(); 53 | featureRowList.add(rowObject); 54 | } 55 | return featureRowList; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/view/PensionView.java: -------------------------------------------------------------------------------- 1 | package view; 2 | 3 | import business.PensionManager; 4 | import core.Helper; 5 | import entity.Pension; 6 | 7 | import javax.swing.*; 8 | import java.awt.event.ActionEvent; 9 | import java.awt.event.ActionListener; 10 | 11 | public class PensionView extends Layout { 12 | private JPanel container; 13 | private JTextField fld_pension_name; 14 | private JButton btn_pension_save; 15 | private JLabel lbl_pension_name; 16 | private JLabel lbl_pension; 17 | private Pension pension; 18 | private PensionManager pensionManager; 19 | 20 | public PensionView(Pension pension){ 21 | this.pensionManager = new PensionManager(); 22 | this.add(container); 23 | this.guiInitilaze(300,200); 24 | this.pension = pension; 25 | 26 | if(pension != null){ 27 | this.fld_pension_name.setText(pension.getName()); 28 | } 29 | 30 | btn_pension_save.addActionListener(e -> { 31 | if(Helper.isFieldEmpty(this.fld_pension_name)){ 32 | Helper.showMessage("fill"); 33 | }else { 34 | boolean result = true; 35 | if(this.pension == null){ 36 | Pension obj = new Pension(fld_pension_name.getText()); 37 | result = this.pensionManager.save(obj); 38 | }else { 39 | this.pension.setName(fld_pension_name.getText()); 40 | result = this.pensionManager.update(this.pension); 41 | } 42 | 43 | if (result){ 44 | Helper.showMessage("done"); 45 | dispose(); 46 | }else { 47 | Helper.showMessage("error"); 48 | } 49 | } 50 | }); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /src/business/RoomManager.java: -------------------------------------------------------------------------------- 1 | package business; 2 | 3 | import core.Helper; 4 | import dao.FeatureDao; 5 | import dao.RoomDao; 6 | import entity.Feature; 7 | import entity.Pension; 8 | import entity.Room; 9 | 10 | import java.util.ArrayList; 11 | 12 | public class RoomManager { 13 | private final RoomDao roomDao; 14 | 15 | public RoomManager(){ 16 | this.roomDao=new RoomDao(); 17 | } 18 | 19 | public ArrayList findAll(){ 20 | return this.roomDao.findAll(); 21 | } 22 | public boolean save(Room room){ 23 | if(room.getId() != 0){ 24 | Helper.showMessage("error"); 25 | } 26 | return this.roomDao.save(room); 27 | } 28 | 29 | public Room findById(int id){ 30 | return this.roomDao.findById(id); 31 | } 32 | 33 | public boolean update(Room room){ 34 | if(this.findById(room.getId()) == null){ 35 | Helper.showMessage("notfound"); 36 | } 37 | return this.roomDao.update(room); 38 | } 39 | public boolean delete(int id){ 40 | if(this.findById(id)==null){ 41 | Helper.showMessage(id+" ID kayıtlı oda bulunmadı."); 42 | return false; 43 | } 44 | return this.roomDao.delete(id); 45 | } 46 | public ArrayList getForTable(int size){ 47 | ArrayList roomRowList = new ArrayList<>(); 48 | for(Room room : this.findAll()){ 49 | Object[] rowObject = new Object[size]; 50 | int i =0; 51 | rowObject[i++] = room.getId(); 52 | rowObject[i++] = room.getName(); 53 | rowObject[i++] = room.getPrice(); 54 | rowObject[i++] = room.getStock(); 55 | roomRowList.add(rowObject); 56 | } 57 | return roomRowList; 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Turizm Acentesi Projesi 2 | 3 | Bu proje, Patika+ Backend Programı için Bitirme Projesi olarak geliştirilmiştir. Proje, bir turizm acentesi yönetim sistemini simüle etmektedir. 4 | # Veritabanı Şeması 5 | turizmacente.sql 6 | ![Veritabanı](images/veritabanı.png) 7 | 8 | 9 | https://github.com/Snmzgrkn/TurizmAcenteProjesi/assets/56911478/6c2bd6cd-6a52-47c1-9fa6-2dcf8a8bc2e3 10 | 11 | ![addreservation](https://github.com/Snmzgrkn/TurizmAcenteProjesi/assets/56911478/5869a000-e071-4919-9390-bdeda723d595) 12 | ![login](https://github.com/Snmzgrkn/TurizmAcenteProjesi/assets/56911478/eb55ee76-0e66-4ecf-9969-489beb6525a5) 13 | 14 |