質問編集履歴
1
文章の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -462,7 +462,9 @@
|
|
462
462
|
|
463
463
|
```
|
464
464
|
|
465
|
+
|
466
|
+
|
465
|
-
|
467
|
+
Departmentのbean
|
466
468
|
|
467
469
|
```
|
468
470
|
|
@@ -472,7 +474,7 @@
|
|
472
474
|
|
473
475
|
/**
|
474
476
|
|
475
|
-
*
|
477
|
+
* 部署情報Bean
|
476
478
|
|
477
479
|
*
|
478
480
|
|
@@ -480,55 +482,7 @@
|
|
480
482
|
|
481
483
|
*/
|
482
484
|
|
483
|
-
public class
|
485
|
+
public class Department {
|
484
|
-
|
485
|
-
/** 社員ID */
|
486
|
-
|
487
|
-
private int empId;
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
/** 社員パスワード */
|
492
|
-
|
493
|
-
private String empPass;
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
/** 社員名 */
|
498
|
-
|
499
|
-
private String empName;
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
/** 性別 */
|
504
|
-
|
505
|
-
private String gender;
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
/** 住所 */
|
510
|
-
|
511
|
-
private String address;
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
/** 生年月日 */
|
516
|
-
|
517
|
-
private String birthday;
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
/** 生年月日 */
|
522
|
-
|
523
|
-
private String authority;
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
/** 部署 */
|
528
|
-
|
529
|
-
private Department department;
|
530
|
-
|
531
|
-
|
532
486
|
|
533
487
|
/** 部署ID */
|
534
488
|
|
@@ -536,19 +490,25 @@
|
|
536
490
|
|
537
491
|
|
538
492
|
|
493
|
+
/** 部署名 */
|
494
|
+
|
495
|
+
private String deptName;
|
496
|
+
|
497
|
+
|
498
|
+
|
539
499
|
/**
|
540
500
|
|
541
|
-
*
|
501
|
+
* 部署IDを取得
|
542
502
|
|
543
503
|
*
|
544
504
|
|
545
|
-
* @return
|
505
|
+
* @return 部門ID
|
546
506
|
|
547
507
|
*/
|
548
508
|
|
549
|
-
public int get
|
509
|
+
public int getDeptId() {
|
550
|
-
|
510
|
+
|
551
|
-
return e
|
511
|
+
return deptId;
|
552
512
|
|
553
513
|
}
|
554
514
|
|
@@ -556,19 +516,19 @@
|
|
556
516
|
|
557
517
|
/**
|
558
518
|
|
559
|
-
*
|
519
|
+
* 部門IDを保存
|
560
520
|
|
561
521
|
*
|
562
522
|
|
563
|
-
* @param e
|
523
|
+
* @param deptId
|
564
|
-
|
524
|
+
|
565
|
-
*
|
525
|
+
* 部門ID
|
566
526
|
|
567
527
|
*/
|
568
528
|
|
569
|
-
public void set
|
529
|
+
public void setDeptId(int deptId) {
|
570
|
-
|
530
|
+
|
571
|
-
this.e
|
531
|
+
this.deptId = deptId;
|
572
532
|
|
573
533
|
}
|
574
534
|
|
@@ -576,17 +536,17 @@
|
|
576
536
|
|
577
537
|
/**
|
578
538
|
|
579
|
-
*
|
539
|
+
* 部門を取得
|
580
540
|
|
581
541
|
*
|
582
542
|
|
583
|
-
* @return
|
543
|
+
* @return 部門名
|
584
544
|
|
585
545
|
*/
|
586
546
|
|
587
|
-
public String get
|
547
|
+
public String getDeptName() {
|
588
|
-
|
548
|
+
|
589
|
-
return e
|
549
|
+
return deptName;
|
590
550
|
|
591
551
|
}
|
592
552
|
|
@@ -594,287 +554,19 @@
|
|
594
554
|
|
595
555
|
/**
|
596
556
|
|
597
|
-
*
|
557
|
+
* 部門名を保存
|
598
558
|
|
599
559
|
*
|
600
560
|
|
601
|
-
* @param e
|
561
|
+
* @param deptName
|
602
|
-
|
562
|
+
|
603
|
-
*
|
563
|
+
* 部門名
|
604
564
|
|
605
565
|
*/
|
606
566
|
|
607
|
-
public void setEmpPass(String empPass) {
|
608
|
-
|
609
|
-
this.empPass = empPass;
|
610
|
-
|
611
|
-
}
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
/**
|
616
|
-
|
617
|
-
* 社員名を取得します。
|
618
|
-
|
619
|
-
*
|
620
|
-
|
621
|
-
* @return 社員名
|
622
|
-
|
623
|
-
*/
|
624
|
-
|
625
|
-
public String getEmpName() {
|
626
|
-
|
627
|
-
return empName;
|
628
|
-
|
629
|
-
}
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
/**
|
634
|
-
|
635
|
-
* 社員名を設定します。
|
636
|
-
|
637
|
-
*
|
638
|
-
|
639
|
-
* @param empName
|
640
|
-
|
641
|
-
* 社員名
|
642
|
-
|
643
|
-
*/
|
644
|
-
|
645
|
-
public void set
|
567
|
+
public void setDeptName(String deptName) {
|
646
|
-
|
568
|
+
|
647
|
-
this.e
|
569
|
+
this.deptName = deptName;
|
648
|
-
|
649
|
-
}
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
/**
|
654
|
-
|
655
|
-
* 性別を取得します。
|
656
|
-
|
657
|
-
*
|
658
|
-
|
659
|
-
* @return 性別
|
660
|
-
|
661
|
-
*/
|
662
|
-
|
663
|
-
public String getGender() {
|
664
|
-
|
665
|
-
return gender;
|
666
|
-
|
667
|
-
}
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
/**
|
672
|
-
|
673
|
-
* 性別を設定します。
|
674
|
-
|
675
|
-
*
|
676
|
-
|
677
|
-
* @param gender
|
678
|
-
|
679
|
-
* 性別
|
680
|
-
|
681
|
-
*/
|
682
|
-
|
683
|
-
public void setGender(String gender) {
|
684
|
-
|
685
|
-
this.gender = gender;
|
686
|
-
|
687
|
-
}
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
/**
|
692
|
-
|
693
|
-
* 住所を取得します。
|
694
|
-
|
695
|
-
*
|
696
|
-
|
697
|
-
* @return 住所
|
698
|
-
|
699
|
-
*/
|
700
|
-
|
701
|
-
public String getAddress() {
|
702
|
-
|
703
|
-
return address;
|
704
|
-
|
705
|
-
}
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
/**
|
710
|
-
|
711
|
-
* 住所を設定します。
|
712
|
-
|
713
|
-
*
|
714
|
-
|
715
|
-
* @param address
|
716
|
-
|
717
|
-
* 住所
|
718
|
-
|
719
|
-
*/
|
720
|
-
|
721
|
-
public void setAddress(String address) {
|
722
|
-
|
723
|
-
this.address = address;
|
724
|
-
|
725
|
-
}
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
/**
|
730
|
-
|
731
|
-
* 生年月日を取得します。
|
732
|
-
|
733
|
-
*
|
734
|
-
|
735
|
-
* @return 生年月日
|
736
|
-
|
737
|
-
*/
|
738
|
-
|
739
|
-
public String getBirthday() {
|
740
|
-
|
741
|
-
return birthday;
|
742
|
-
|
743
|
-
}
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
/**
|
748
|
-
|
749
|
-
* 生年月日を設定します。
|
750
|
-
|
751
|
-
*
|
752
|
-
|
753
|
-
* @param birthday
|
754
|
-
|
755
|
-
* 生年月日
|
756
|
-
|
757
|
-
*/
|
758
|
-
|
759
|
-
public void setBirthday(String birthday) {
|
760
|
-
|
761
|
-
this.birthday = birthday;
|
762
|
-
|
763
|
-
}
|
764
|
-
|
765
|
-
|
766
|
-
|
767
|
-
/**
|
768
|
-
|
769
|
-
* 生年月日を取得します。
|
770
|
-
|
771
|
-
*
|
772
|
-
|
773
|
-
* @return 生年月日
|
774
|
-
|
775
|
-
*/
|
776
|
-
|
777
|
-
public String getAuthority() {
|
778
|
-
|
779
|
-
return authority;
|
780
|
-
|
781
|
-
}
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
/**
|
786
|
-
|
787
|
-
* 生年月日を設定します。
|
788
|
-
|
789
|
-
*
|
790
|
-
|
791
|
-
* @param authority
|
792
|
-
|
793
|
-
* 生年月日
|
794
|
-
|
795
|
-
*/
|
796
|
-
|
797
|
-
public void setAuthority(String authority) {
|
798
|
-
|
799
|
-
this.authority = authority;
|
800
|
-
|
801
|
-
}
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
/**
|
806
|
-
|
807
|
-
* 部署を取得します。
|
808
|
-
|
809
|
-
*
|
810
|
-
|
811
|
-
* @return 部署
|
812
|
-
|
813
|
-
*/
|
814
|
-
|
815
|
-
public Department getDepartment() {
|
816
|
-
|
817
|
-
return department;
|
818
|
-
|
819
|
-
}
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
/**
|
824
|
-
|
825
|
-
* 部署を設定します。
|
826
|
-
|
827
|
-
*
|
828
|
-
|
829
|
-
* @param department
|
830
|
-
|
831
|
-
* 部署
|
832
|
-
|
833
|
-
*/
|
834
|
-
|
835
|
-
public void setDepartment(Department department) {
|
836
|
-
|
837
|
-
this.department = department;
|
838
|
-
|
839
|
-
}
|
840
|
-
|
841
|
-
|
842
|
-
|
843
|
-
/**
|
844
|
-
|
845
|
-
* 部署IDを取得します。
|
846
|
-
|
847
|
-
*
|
848
|
-
|
849
|
-
* @return 部署ID
|
850
|
-
|
851
|
-
*/
|
852
|
-
|
853
|
-
public int getDeptId() {
|
854
|
-
|
855
|
-
|
856
|
-
|
857
|
-
return deptId;
|
858
|
-
|
859
|
-
}
|
860
|
-
|
861
|
-
|
862
|
-
|
863
|
-
/**
|
864
|
-
|
865
|
-
* 部署IDを設定します。
|
866
|
-
|
867
|
-
*
|
868
|
-
|
869
|
-
* @param department
|
870
|
-
|
871
|
-
* 部署
|
872
|
-
|
873
|
-
*/
|
874
|
-
|
875
|
-
public void setDeptId(int deptId) {
|
876
|
-
|
877
|
-
this.deptId = deptId;
|
878
570
|
|
879
571
|
}
|
880
572
|
|
@@ -886,120 +578,6 @@
|
|
886
578
|
|
887
579
|
```
|
888
580
|
|
889
|
-
Departmentのbean
|
890
|
-
|
891
|
-
```
|
892
|
-
|
893
|
-
package jp.co.sss.crud.bean;
|
894
|
-
|
895
|
-
|
896
|
-
|
897
|
-
/**
|
898
|
-
|
899
|
-
* 部署情報Bean
|
900
|
-
|
901
|
-
*
|
902
|
-
|
903
|
-
* @author system_shared
|
904
|
-
|
905
|
-
*/
|
906
|
-
|
907
|
-
public class Department {
|
908
|
-
|
909
|
-
/** 部署ID */
|
910
|
-
|
911
|
-
private int deptId;
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
/** 部署名 */
|
916
|
-
|
917
|
-
private String deptName;
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
/**
|
922
|
-
|
923
|
-
* 部署IDを取得
|
924
|
-
|
925
|
-
*
|
926
|
-
|
927
|
-
* @return 部門ID
|
928
|
-
|
929
|
-
*/
|
930
|
-
|
931
|
-
public int getDeptId() {
|
932
|
-
|
933
|
-
return deptId;
|
934
|
-
|
935
|
-
}
|
936
|
-
|
937
|
-
|
938
|
-
|
939
|
-
/**
|
940
|
-
|
941
|
-
* 部門IDを保存
|
942
|
-
|
943
|
-
*
|
944
|
-
|
945
|
-
* @param deptId
|
946
|
-
|
947
|
-
* 部門ID
|
948
|
-
|
949
|
-
*/
|
950
|
-
|
951
|
-
public void setDeptId(int deptId) {
|
952
|
-
|
953
|
-
this.deptId = deptId;
|
954
|
-
|
955
|
-
}
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
/**
|
960
|
-
|
961
|
-
* 部門を取得
|
962
|
-
|
963
|
-
*
|
964
|
-
|
965
|
-
* @return 部門名
|
966
|
-
|
967
|
-
*/
|
968
|
-
|
969
|
-
public String getDeptName() {
|
970
|
-
|
971
|
-
return deptName;
|
972
|
-
|
973
|
-
}
|
974
|
-
|
975
|
-
|
976
|
-
|
977
|
-
/**
|
978
|
-
|
979
|
-
* 部門名を保存
|
980
|
-
|
981
|
-
*
|
982
|
-
|
983
|
-
* @param deptName
|
984
|
-
|
985
|
-
* 部門名
|
986
|
-
|
987
|
-
*/
|
988
|
-
|
989
|
-
public void setDeptName(String deptName) {
|
990
|
-
|
991
|
-
this.deptName = deptName;
|
992
|
-
|
993
|
-
}
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
}
|
998
|
-
|
999
|
-
|
1000
|
-
|
1001
|
-
```
|
1002
|
-
|
1003
581
|
|
1004
582
|
|
1005
583
|
HTTPステータス500-というエラーが起き、説明に、The server encountered an internal error that prevented it from fulfilling this request.というのが表示されています。
|
@@ -1008,6 +586,6 @@
|
|
1008
586
|
|
1009
587
|
ps.setInt(7, employee.getDeptId());のコードを消すと社員完了画面まではいくのですが、社員登録はされませんでした。
|
1010
588
|
|
1011
|
-
|
589
|
+
intの宣言に間違いがないか確認したり、デバックで調べたりしたのですが、解決できなかったので、アドバイス等頂けると大変助かります。
|
1012
590
|
|
1013
591
|
ソースコードが多く、大変ご迷惑だと思いますが、宜しくお願い致します。
|