jpa id 오류 수정
This commit is contained in:
@@ -27,7 +27,7 @@ import lombok.NonNull;
|
|||||||
@Entity
|
@Entity
|
||||||
@Table(name = "TB_APIMS_USER_ATHR_ROLE_CHG_H")
|
@Table(name = "TB_APIMS_USER_ATHR_ROLE_CHG_H")
|
||||||
@org.hibernate.annotations.Table(appliesTo = "TB_APIMS_USER_ATHR_ROLE_CHG_H", comment = "사용자 권한 ROLE 변경 이력")
|
@org.hibernate.annotations.Table(appliesTo = "TB_APIMS_USER_ATHR_ROLE_CHG_H", comment = "사용자 권한 ROLE 변경 이력")
|
||||||
public class UserAthrRoleChgHistory extends AbstractEntity<String> implements Serializable {
|
public class UserAthrRoleChgHistory extends AbstractEntity<Integer> implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@Id
|
@Id
|
||||||
@@ -76,8 +76,8 @@ public class UserAthrRoleChgHistory extends AbstractEntity<String> implements Se
|
|||||||
private LocalDateTime crtnDttm;
|
private LocalDateTime crtnDttm;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public @NonNull String getId() {
|
public @NonNull Integer getId() {
|
||||||
return Integer.toString(chgLogId);
|
return chgLogId;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -4,6 +4,6 @@ import com.eactive.eai.rms.data.EMSDataSource;
|
|||||||
import com.eactive.eai.data.jpa.BaseRepository;
|
import com.eactive.eai.data.jpa.BaseRepository;
|
||||||
|
|
||||||
@EMSDataSource
|
@EMSDataSource
|
||||||
public interface UserAthrRoleChgHistoryRepository extends BaseRepository<UserAthrRoleChgHistory, String> {
|
public interface UserAthrRoleChgHistoryRepository extends BaseRepository<UserAthrRoleChgHistory, Integer> {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -11,7 +11,7 @@ import com.querydsl.core.types.dsl.BooleanExpression;
|
|||||||
@Service
|
@Service
|
||||||
@Transactional(transactionManager = "transactionManagerForEMS")
|
@Transactional(transactionManager = "transactionManagerForEMS")
|
||||||
public class UserAthrRoleChgHistoryService
|
public class UserAthrRoleChgHistoryService
|
||||||
extends AbstractEMSDataSerivce<UserAthrRoleChgHistory, String, UserAthrRoleChgHistoryRepository> {
|
extends AbstractEMSDataSerivce<UserAthrRoleChgHistory, Integer, UserAthrRoleChgHistoryRepository> {
|
||||||
|
|
||||||
public Page<UserAthrRoleChgHistory> findAll(Pageable pageable, String userId) {
|
public Page<UserAthrRoleChgHistory> findAll(Pageable pageable, String userId) {
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -4,6 +4,6 @@ import com.eactive.eai.data.jpa.BaseRepository;
|
|||||||
import com.eactive.eai.rms.data.EMSDataSource;
|
import com.eactive.eai.rms.data.EMSDataSource;
|
||||||
|
|
||||||
@EMSDataSource
|
@EMSDataSource
|
||||||
public interface UserLoginHistoryRepository extends BaseRepository<UserLoginHistory, String> {
|
public interface UserLoginHistoryRepository extends BaseRepository<UserLoginHistory, Integer> {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ import com.eactive.apim.portal.user.entity.QUserInfo;
|
|||||||
|
|
||||||
@Service
|
@Service
|
||||||
@Transactional(transactionManager = "transactionManagerForEMS")
|
@Transactional(transactionManager = "transactionManagerForEMS")
|
||||||
public class UserLoginHistoryService extends AbstractEMSDataSerivce<UserLoginHistory, String, UserLoginHistoryRepository> {
|
public class UserLoginHistoryService extends AbstractEMSDataSerivce<UserLoginHistory, Integer, UserLoginHistoryRepository> {
|
||||||
|
|
||||||
final String START_HHmmss = " 00:00:00";
|
final String START_HHmmss = " 00:00:00";
|
||||||
final String END_HHmmss = " 23:59:59";
|
final String END_HHmmss = " 23:59:59";
|
||||||
|
|||||||
@@ -23,13 +23,13 @@ import lombok.EqualsAndHashCode;
|
|||||||
@Entity
|
@Entity
|
||||||
@Table(name = "tseaist02")
|
@Table(name = "tseaist02")
|
||||||
@org.hibernate.annotations.Table(appliesTo = "tseaist02", comment = "시간대별통계")
|
@org.hibernate.annotations.Table(appliesTo = "tseaist02", comment = "시간대별통계")
|
||||||
public class DailyStatistics extends AbstractEntity<HourlyStatisticsId>
|
public class DailyStatistics extends AbstractEntity<DailyStatisticsId>
|
||||||
implements Serializable {
|
implements Serializable {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@EmbeddedId
|
@EmbeddedId
|
||||||
private HourlyStatisticsId id;
|
private DailyStatisticsId id;
|
||||||
|
|
||||||
@Column(precision = 10)
|
@Column(precision = 10)
|
||||||
@Comment("0시 오류건수")
|
@Comment("0시 오류건수")
|
||||||
|
|||||||
+1
-1
@@ -2,6 +2,6 @@ package com.eactive.eai.rms.data.entity.onl.statistics;
|
|||||||
|
|
||||||
import com.eactive.eai.data.jpa.BaseRepository;
|
import com.eactive.eai.data.jpa.BaseRepository;
|
||||||
|
|
||||||
interface HourlyStatisticsRepository extends BaseRepository<DailyStatistics, DailyStatisticsId> {
|
interface HourlyStatisticsRepository extends BaseRepository<HourlyStatistics, HourlyStatisticsId> {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -8,6 +8,6 @@ import com.eactive.eai.data.jpa.AbstractDataService;
|
|||||||
@Service
|
@Service
|
||||||
@Transactional
|
@Transactional
|
||||||
public class HourlyStatisticsService
|
public class HourlyStatisticsService
|
||||||
extends AbstractDataService<DailyStatistics, DailyStatisticsId, HourlyStatisticsRepository> {
|
extends AbstractDataService<HourlyStatistics, HourlyStatisticsId, HourlyStatisticsRepository> {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,13 +23,13 @@ import lombok.EqualsAndHashCode;
|
|||||||
@Entity
|
@Entity
|
||||||
@Table(name = "tseaist04")
|
@Table(name = "tseaist04")
|
||||||
@org.hibernate.annotations.Table(appliesTo = "tseaist04", comment = "년별 통계")
|
@org.hibernate.annotations.Table(appliesTo = "tseaist04", comment = "년별 통계")
|
||||||
public class YearlyStatistics extends AbstractEntity<MonthlyStatisticsId>
|
public class YearlyStatistics extends AbstractEntity<YearlyStatisticsId>
|
||||||
implements Serializable {
|
implements Serializable {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@EmbeddedId
|
@EmbeddedId
|
||||||
private MonthlyStatisticsId id;
|
private YearlyStatisticsId id;
|
||||||
|
|
||||||
@Column(precision = 10)
|
@Column(precision = 10)
|
||||||
@Comment("10월 오류건수")
|
@Comment("10월 오류건수")
|
||||||
|
|||||||
+1
-1
@@ -2,6 +2,6 @@ package com.eactive.eai.rms.data.entity.onl.statistics;
|
|||||||
|
|
||||||
import com.eactive.eai.data.jpa.BaseRepository;
|
import com.eactive.eai.data.jpa.BaseRepository;
|
||||||
|
|
||||||
interface YearlyStatisticsRepository extends BaseRepository<YearlyStatistics, YearlyStatisticsId>{
|
interface YearlyStatisticsRepository extends BaseRepository<YearlyStatistics, YearlyStatisticsId> {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user