Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
ejercicio2-framework-back
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Josue
ejercicio2-framework-back
Commits
a78ad984
Commit
a78ad984
authored
Dec 11, 2021
by
Roberto Loayza Miljanovich
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_marcos' into 'developer'
Dev marcos See merge request ByteBot/web/bytebot-service!13
parents
e1982103
b5175844
Changes
31
Hide whitespace changes
Inline
Side-by-side
Showing
31 changed files
with
63 additions
and
91 deletions
+63
-91
BusinessParameterController.java
...ytesw/bytebot/controller/BusinessParameterController.java
+1
-1
GoalController.java
...in/java/com/bytesw/bytebot/controller/GoalController.java
+1
-0
Action.java
src/main/java/com/bytesw/bytebot/etl/model/Action.java
+2
-3
DeleteDataSensibleControl.java
...m/bytesw/bytebot/etl/model/DeleteDataSensibleControl.java
+2
-3
DeleteDataSensibleLog.java
...a/com/bytesw/bytebot/etl/model/DeleteDataSensibleLog.java
+2
-3
EventHistory.java
src/main/java/com/bytesw/bytebot/etl/model/EventHistory.java
+2
-3
Goal.java
src/main/java/com/bytesw/bytebot/etl/model/Goal.java
+2
-3
GoalForActions.java
...ain/java/com/bytesw/bytebot/etl/model/GoalForActions.java
+2
-3
Intent.java
src/main/java/com/bytesw/bytebot/etl/model/Intent.java
+2
-3
Message.java
src/main/java/com/bytesw/bytebot/etl/model/Message.java
+2
-3
Response.java
src/main/java/com/bytesw/bytebot/etl/model/Response.java
+2
-3
Session.java
src/main/java/com/bytesw/bytebot/etl/model/Session.java
+2
-3
SessionAction.java
...main/java/com/bytesw/bytebot/etl/model/SessionAction.java
+2
-3
User.java
src/main/java/com/bytesw/bytebot/etl/model/User.java
+2
-3
Agent.java
src/main/java/com/bytesw/bytebot/model/Agent.java
+3
-3
BusinessParameter.java
...main/java/com/bytesw/bytebot/model/BusinessParameter.java
+3
-1
BusinessParameterConfiguration.java
.../bytesw/bytebot/model/BusinessParameterConfiguration.java
+2
-3
CalendarException.java
...main/java/com/bytesw/bytebot/model/CalendarException.java
+2
-2
CalendarExceptionFull.java
.../java/com/bytesw/bytebot/model/CalendarExceptionFull.java
+2
-2
Channel.java
src/main/java/com/bytesw/bytebot/model/Channel.java
+2
-3
ChannelParam.java
src/main/java/com/bytesw/bytebot/model/ChannelParam.java
+2
-3
Country.java
src/main/java/com/bytesw/bytebot/model/Country.java
+2
-3
DeploymentChannel.java
...main/java/com/bytesw/bytebot/model/DeploymentChannel.java
+2
-3
DeploymentChannelParamValue.java
...com/bytesw/bytebot/model/DeploymentChannelParamValue.java
+2
-3
FrequentQuestion.java
src/main/java/com/bytesw/bytebot/model/FrequentQuestion.java
+2
-3
QuestionFile.java
src/main/java/com/bytesw/bytebot/model/QuestionFile.java
+5
-15
SchedulerTask.java
src/main/java/com/bytesw/bytebot/model/SchedulerTask.java
+2
-2
Timezone.java
src/main/java/com/bytesw/bytebot/model/Timezone.java
+2
-3
WeekScheduler.java
src/main/java/com/bytesw/bytebot/model/WeekScheduler.java
+2
-2
BusinessParameterService.java
.../com/bytesw/bytebot/service/BusinessParameterService.java
+2
-2
GoalForActionService.java
...java/com/bytesw/bytebot/service/GoalForActionService.java
+0
-1
No files found.
src/main/java/com/bytesw/bytebot/controller/BusinessParameterController.java
View file @
a78ad984
...
@@ -205,7 +205,7 @@ public class BusinessParameterController extends XDFController<BusinessParameter
...
@@ -205,7 +205,7 @@ public class BusinessParameterController extends XDFController<BusinessParameter
if
(
this
.
service
.
validateKey
(
bean
))
{
if
(
this
.
service
.
validateKey
(
bean
))
{
throw
new
ReferentialIntegrityException
(
"Ya existe un identificador con el mismo nombre"
);
throw
new
ReferentialIntegrityException
(
"Ya existe un identificador con el mismo nombre"
);
}
else
{
}
else
{
bean
=
this
.
service
.
create
(
bean
);
bean
=
this
.
service
.
create
BP
(
bean
);
return
new
ResponseEntity
(
this
.
gson
.
toJson
(
bean
),
HttpStatus
.
OK
);
return
new
ResponseEntity
(
this
.
gson
.
toJson
(
bean
),
HttpStatus
.
OK
);
}
}
}
}
...
...
src/main/java/com/bytesw/bytebot/controller/GoalController.java
View file @
a78ad984
...
@@ -59,6 +59,7 @@ public class GoalController extends XDFController<GoalBean, Long> {
...
@@ -59,6 +59,7 @@ public class GoalController extends XDFController<GoalBean, Long> {
String
info
=
""
;
String
info
=
""
;
try
{
try
{
goalService
.
updateGoalForActions
(
body
,
id
);
goalService
.
updateGoalForActions
(
body
,
id
);
info
=
"Ok"
;
return
new
ResponseEntity
(
gson
.
toJson
(
info
),
HttpStatus
.
OK
);
return
new
ResponseEntity
(
gson
.
toJson
(
info
),
HttpStatus
.
OK
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
info
=
e
.
getMessage
();
info
=
e
.
getMessage
();
...
...
src/main/java/com/bytesw/bytebot/etl/model/Action.java
View file @
a78ad984
...
@@ -17,9 +17,8 @@ public class Action {
...
@@ -17,9 +17,8 @@ public class Action {
@Id
@Id
@Column
(
name
=
"action_id"
)
@Column
(
name
=
"action_id"
)
@TableGenerator
(
name
=
"AVB_ACTION_GENERATOR"
,
table
=
"SEQUENCE_TABLE"
,
pkColumnName
=
"SEQ_NAME"
,
@SequenceGenerator
(
name
=
"AVB_ACTION_GENERATOR"
,
sequenceName
=
"AVB_ACTION_SEQ"
,
initialValue
=
1
,
allocationSize
=
1
)
valueColumnName
=
"SEQ_COUNT"
,
pkColumnValue
=
"AVB_ACTION_SEQ"
,
allocationSize
=
1
)
@GeneratedValue
(
strategy
=
GenerationType
.
SEQUENCE
,
generator
=
"AVB_ACTION_GENERATOR"
)
@GeneratedValue
(
strategy
=
GenerationType
.
TABLE
,
generator
=
"AVB_ACTION_GENERATOR"
)
private
Long
id
;
private
Long
id
;
@Column
(
name
=
"action_ident"
)
@Column
(
name
=
"action_ident"
)
...
...
src/main/java/com/bytesw/bytebot/etl/model/DeleteDataSensibleControl.java
View file @
a78ad984
...
@@ -17,9 +17,8 @@ public class DeleteDataSensibleControl {
...
@@ -17,9 +17,8 @@ public class DeleteDataSensibleControl {
@Id
@Id
@Column
(
name
=
"dsmc_id"
)
@Column
(
name
=
"dsmc_id"
)
@TableGenerator
(
name
=
"AVB_DELETE_MSG_SENS_CONTROL_GENERATOR"
,
table
=
"SEQUENCE_TABLE"
,
pkColumnName
=
"SEQ_NAME"
,
@SequenceGenerator
(
name
=
"AVB_DELETE_MSG_SENS_CONTROL_GENERATOR"
,
sequenceName
=
"AVB_DELETE_SENS_MSG_CONTROL_SEQ"
,
initialValue
=
1
,
allocationSize
=
1
)
valueColumnName
=
"SEQ_COUNT"
,
pkColumnValue
=
"AVB_DELETE_MSG_SENS_CONTROL_SEQ"
,
allocationSize
=
1
)
@GeneratedValue
(
strategy
=
GenerationType
.
SEQUENCE
,
generator
=
"AVB_DELETE_MSG_SENS_CONTROL_GENERATOR"
)
@GeneratedValue
(
strategy
=
GenerationType
.
TABLE
,
generator
=
"AVB_DELETE_MSG_SENS_CONTROL_GENERATOR"
)
private
Long
id
;
private
Long
id
;
@Column
(
name
=
"agent_id"
)
@Column
(
name
=
"agent_id"
)
...
...
src/main/java/com/bytesw/bytebot/etl/model/DeleteDataSensibleLog.java
View file @
a78ad984
...
@@ -17,9 +17,8 @@ public class DeleteDataSensibleLog {
...
@@ -17,9 +17,8 @@ public class DeleteDataSensibleLog {
@Id
@Id
@Column
(
name
=
"dele_id"
)
@Column
(
name
=
"dele_id"
)
@TableGenerator
(
name
=
"AVB_DELETE_MSG_SENS_LOG_GENERATOR"
,
table
=
"SEQUENCE_TABLE"
,
pkColumnName
=
"SEQ_NAME"
,
@SequenceGenerator
(
name
=
"AVB_DELETE_MSG_SENS_LOG_GENERATOR"
,
sequenceName
=
"AVB_DELETE_SENS_MSG_LOG_SEQ"
,
initialValue
=
1
,
allocationSize
=
1
)
valueColumnName
=
"SEQ_COUNT"
,
pkColumnValue
=
"AVB_DELETE_MSG_SENS_LOG_SEQ"
,
allocationSize
=
1
)
@GeneratedValue
(
strategy
=
GenerationType
.
SEQUENCE
,
generator
=
"AVB_DELETE_MSG_SENS_LOG_GENERATOR"
)
@GeneratedValue
(
strategy
=
GenerationType
.
TABLE
,
generator
=
"AVB_DELETE_MSG_SENS_LOG_GENERATOR"
)
private
Long
id
;
private
Long
id
;
@Column
(
name
=
"inten_id"
)
@Column
(
name
=
"inten_id"
)
...
...
src/main/java/com/bytesw/bytebot/etl/model/EventHistory.java
View file @
a78ad984
...
@@ -16,9 +16,8 @@ public class EventHistory {
...
@@ -16,9 +16,8 @@ public class EventHistory {
@Id
@Id
@Column
(
name
=
"evenh_id"
)
@Column
(
name
=
"evenh_id"
)
@TableGenerator
(
name
=
"AVB_EVENT_HISTORY_GENERATOR"
,
table
=
"SEQUENCE_TABLE"
,
pkColumnName
=
"SEQ_NAME"
,
@SequenceGenerator
(
name
=
"AVB_EVENT_HISTORY_GENERATOR"
,
sequenceName
=
"AVB_EVENT_HISTORY_SEQ"
,
initialValue
=
1
,
allocationSize
=
1
)
valueColumnName
=
"SEQ_COUNT"
,
pkColumnValue
=
"AVB_EVENT_HISTORY_SEQ"
,
allocationSize
=
1
)
@GeneratedValue
(
strategy
=
GenerationType
.
SEQUENCE
,
generator
=
"AVB_EVENT_HISTORY_GENERATOR"
)
@GeneratedValue
(
strategy
=
GenerationType
.
TABLE
,
generator
=
"AVB_EVENT_HISTORY_GENERATOR"
)
private
Long
id
;
private
Long
id
;
@Column
(
name
=
"evenh_sendid"
)
@Column
(
name
=
"evenh_sendid"
)
...
...
src/main/java/com/bytesw/bytebot/etl/model/Goal.java
View file @
a78ad984
...
@@ -15,9 +15,8 @@ public class Goal {
...
@@ -15,9 +15,8 @@ public class Goal {
@Id
@Id
@Column
(
name
=
"goal_id"
)
@Column
(
name
=
"goal_id"
)
@TableGenerator
(
name
=
"AVB_GOAL_GENERATOR"
,
table
=
"SEQUENCE_TABLE"
,
pkColumnName
=
"SEQ_NAME"
,
@SequenceGenerator
(
name
=
"AVB_GOAL_GENERATOR"
,
sequenceName
=
"AVB_GOAL_SEQ"
,
initialValue
=
1
,
allocationSize
=
1
)
valueColumnName
=
"SEQ_COUNT"
,
pkColumnValue
=
"AVB_GOAL_SEQ"
,
allocationSize
=
1
)
@GeneratedValue
(
strategy
=
GenerationType
.
SEQUENCE
,
generator
=
"AVB_GOAL_GENERATOR"
)
@GeneratedValue
(
strategy
=
GenerationType
.
TABLE
,
generator
=
"AVB_GOAL_GENERATOR"
)
private
Long
id
;
private
Long
id
;
@Column
(
name
=
"goal_ident"
)
@Column
(
name
=
"goal_ident"
)
...
...
src/main/java/com/bytesw/bytebot/etl/model/GoalForActions.java
View file @
a78ad984
...
@@ -17,9 +17,8 @@ public class GoalForActions {
...
@@ -17,9 +17,8 @@ public class GoalForActions {
@Id
@Id
@Column
(
name
=
"gfac_id"
)
@Column
(
name
=
"gfac_id"
)
@TableGenerator
(
name
=
"AVB_GOALFORACTIONS_GENERATOR"
,
table
=
"SEQUENCE_TABLE"
,
pkColumnName
=
"SEQ_NAME"
,
@SequenceGenerator
(
name
=
"AVB_GOALFORACTIONS_GENERATOR"
,
sequenceName
=
"AVB_GOALFORACTIONS_SEQ"
,
initialValue
=
1
,
allocationSize
=
1
)
valueColumnName
=
"SEQ_COUNT"
,
pkColumnValue
=
"AVB_GOALFORACTIONS_SEQ"
,
allocationSize
=
1
)
@GeneratedValue
(
strategy
=
GenerationType
.
SEQUENCE
,
generator
=
"AVB_GOALFORACTIONS_GENERATOR"
)
@GeneratedValue
(
strategy
=
GenerationType
.
TABLE
,
generator
=
"AVB_GOALFORACTIONS_GENERATOR"
)
private
Long
id
;
private
Long
id
;
@Column
(
name
=
"goal_id"
)
@Column
(
name
=
"goal_id"
)
...
...
src/main/java/com/bytesw/bytebot/etl/model/Intent.java
View file @
a78ad984
...
@@ -16,9 +16,8 @@ public class Intent {
...
@@ -16,9 +16,8 @@ public class Intent {
@Id
@Id
@Column
(
name
=
"inten_id"
)
@Column
(
name
=
"inten_id"
)
@TableGenerator
(
name
=
"AVB_INTENT_DASHBOARD_GENERATOR"
,
table
=
"SEQUENCE_TABLE"
,
pkColumnName
=
"SEQ_NAME"
,
@SequenceGenerator
(
name
=
"AVB_INTENT_DASHBOARD_GENERATOR"
,
sequenceName
=
"AVB_INTENT_SEQ"
,
initialValue
=
1
,
allocationSize
=
1
)
valueColumnName
=
"SEQ_COUNT"
,
pkColumnValue
=
"AVB_INTENT_DASHBOARD_SEQ"
,
allocationSize
=
1
)
@GeneratedValue
(
strategy
=
GenerationType
.
SEQUENCE
,
generator
=
"AVB_INTENT_DASHBOARD_GENERATOR"
)
@GeneratedValue
(
strategy
=
GenerationType
.
TABLE
,
generator
=
"AVB_INTENT_DASHBOARD_GENERATOR"
)
private
Long
id
;
private
Long
id
;
@Column
(
name
=
"inten_ident"
)
@Column
(
name
=
"inten_ident"
)
...
...
src/main/java/com/bytesw/bytebot/etl/model/Message.java
View file @
a78ad984
...
@@ -20,9 +20,8 @@ public class Message {
...
@@ -20,9 +20,8 @@ public class Message {
@Id
@Id
@Column
(
name
=
"messa_id"
)
@Column
(
name
=
"messa_id"
)
@TableGenerator
(
name
=
"AVB_MESSAGE_GENERATOR"
,
table
=
"SEQUENCE_TABLE"
,
pkColumnName
=
"SEQ_NAME"
,
@SequenceGenerator
(
name
=
"AVB_MESSAGE_GENERATOR"
,
sequenceName
=
"AVB_MESSAGE_SEQ"
,
initialValue
=
1
,
allocationSize
=
1
)
valueColumnName
=
"SEQ_COUNT"
,
pkColumnValue
=
"AVB_MESSAGE_SEQ"
,
allocationSize
=
1
)
@GeneratedValue
(
strategy
=
GenerationType
.
SEQUENCE
,
generator
=
"AVB_MESSAGE_GENERATOR"
)
@GeneratedValue
(
strategy
=
GenerationType
.
TABLE
,
generator
=
"AVB_MESSAGE_GENERATOR"
)
private
Long
id
;
private
Long
id
;
@Column
(
name
=
"session_id"
)
@Column
(
name
=
"session_id"
)
...
...
src/main/java/com/bytesw/bytebot/etl/model/Response.java
View file @
a78ad984
...
@@ -16,9 +16,8 @@ public class Response {
...
@@ -16,9 +16,8 @@ public class Response {
@Id
@Id
@Column
(
name
=
"respo_id"
)
@Column
(
name
=
"respo_id"
)
@TableGenerator
(
name
=
"AVB_RESPONSE_GENERATOR"
,
table
=
"SEQUENCE_TABLE"
,
pkColumnName
=
"SEQ_NAME"
,
@SequenceGenerator
(
name
=
"AVB_RESPONSE_GENERATOR"
,
sequenceName
=
"AVB_RESPONSE_SEQ"
,
initialValue
=
1
,
allocationSize
=
1
)
valueColumnName
=
"SEQ_COUNT"
,
pkColumnValue
=
"AVB_RESPONSE_SEQ"
,
allocationSize
=
1
)
@GeneratedValue
(
strategy
=
GenerationType
.
SEQUENCE
,
generator
=
"AVB_RESPONSE_GENERATOR"
)
@GeneratedValue
(
strategy
=
GenerationType
.
TABLE
,
generator
=
"AVB_RESPONSE_GENERATOR"
)
private
Long
id
;
private
Long
id
;
@Column
(
name
=
"respo_date"
)
@Column
(
name
=
"respo_date"
)
...
...
src/main/java/com/bytesw/bytebot/etl/model/Session.java
View file @
a78ad984
...
@@ -17,9 +17,8 @@ public class Session {
...
@@ -17,9 +17,8 @@ public class Session {
@Id
@Id
@Column
(
name
=
"session_id"
)
@Column
(
name
=
"session_id"
)
@TableGenerator
(
name
=
"AVB_SESSION_GENERATOR"
,
table
=
"SEQUENCE_TABLE"
,
pkColumnName
=
"SEQ_NAME"
,
@SequenceGenerator
(
name
=
"AVB_SESSION_GENERATOR"
,
sequenceName
=
"AVB_SESSION_SEQ"
,
initialValue
=
1
,
allocationSize
=
1
)
valueColumnName
=
"SEQ_COUNT"
,
pkColumnValue
=
"AVB_SESSION_SEQ"
,
allocationSize
=
1
)
@GeneratedValue
(
strategy
=
GenerationType
.
SEQUENCE
,
generator
=
"AVB_SESSION_GENERATOR"
)
@GeneratedValue
(
strategy
=
GenerationType
.
TABLE
,
generator
=
"AVB_SESSION_GENERATOR"
)
private
Long
id
;
private
Long
id
;
@Column
(
name
=
"session_date"
,
nullable
=
false
)
@Column
(
name
=
"session_date"
,
nullable
=
false
)
...
...
src/main/java/com/bytesw/bytebot/etl/model/SessionAction.java
View file @
a78ad984
...
@@ -16,9 +16,8 @@ public class SessionAction {
...
@@ -16,9 +16,8 @@ public class SessionAction {
@Id
@Id
@Column
(
name
=
"asess_id"
)
@Column
(
name
=
"asess_id"
)
@TableGenerator
(
name
=
"AVB_ACTION_SESSION_GENERATOR"
,
table
=
"SEQUENCE_TABLE"
,
pkColumnName
=
"SEQ_NAME"
,
@SequenceGenerator
(
name
=
"AVB_ACTION_SESSION_GENERATOR"
,
sequenceName
=
"AVB_ACTION_SESSION_SEQ"
,
initialValue
=
1
,
allocationSize
=
1
)
valueColumnName
=
"SEQ_COUNT"
,
pkColumnValue
=
"AVB_ACTION_SESSION_SEQ"
,
allocationSize
=
1
)
@GeneratedValue
(
strategy
=
GenerationType
.
SEQUENCE
,
generator
=
"AVB_ACTION_SESSION_GENERATOR"
)
@GeneratedValue
(
strategy
=
GenerationType
.
TABLE
,
generator
=
"AVB_ACTION_SESSION_GENERATOR"
)
private
Long
id
;
private
Long
id
;
@ManyToOne
(
optional
=
false
)
@ManyToOne
(
optional
=
false
)
...
...
src/main/java/com/bytesw/bytebot/etl/model/User.java
View file @
a78ad984
...
@@ -14,9 +14,8 @@ public class User {
...
@@ -14,9 +14,8 @@ public class User {
@Id
@Id
@Column
(
name
=
"user_id"
)
@Column
(
name
=
"user_id"
)
@TableGenerator
(
name
=
"AVB_USER_GENERATOR"
,
table
=
"SEQUENCE_TABLE"
,
pkColumnName
=
"SEQ_NAME"
,
@SequenceGenerator
(
name
=
"AVB_USER_GENERATOR"
,
sequenceName
=
"AVB_USER_SEQ"
,
initialValue
=
1
,
allocationSize
=
1
)
valueColumnName
=
"SEQ_COUNT"
,
pkColumnValue
=
"AVB_USER_SEQ"
,
allocationSize
=
1
)
@GeneratedValue
(
strategy
=
GenerationType
.
SEQUENCE
,
generator
=
"AVB_USER_GENERATOR"
)
@GeneratedValue
(
strategy
=
GenerationType
.
TABLE
,
generator
=
"AVB_USER_GENERATOR"
)
private
Long
id
;
private
Long
id
;
@Column
(
name
=
"user_ident"
)
@Column
(
name
=
"user_ident"
)
...
...
src/main/java/com/bytesw/bytebot/model/Agent.java
View file @
a78ad984
...
@@ -24,9 +24,8 @@ public class Agent implements Serializable {
...
@@ -24,9 +24,8 @@ public class Agent implements Serializable {
@Id
@Id
@Column
(
name
=
"agen_id"
)
@Column
(
name
=
"agen_id"
)
@GeneratedValue
(
strategy
=
GenerationType
.
TABLE
,
generator
=
"AVB_AGENT_GENERATOR"
)
@SequenceGenerator
(
name
=
"AVB_AGENT_GENERATOR"
,
sequenceName
=
"AVB_AGENT_SEQ"
,
initialValue
=
1
,
allocationSize
=
1
)
@TableGenerator
(
name
=
"AVB_AGENT_GENERATOR"
,
table
=
"SEQUENCE_TABLE"
,
pkColumnName
=
"SEQ_NAME"
,
valueColumnName
=
"SEQ_COUNT"
,
@GeneratedValue
(
strategy
=
GenerationType
.
SEQUENCE
,
generator
=
"AVB_AGENT_GENERATOR"
)
pkColumnValue
=
"AVB_AGENT_SEQ"
,
allocationSize
=
1
)
private
Long
id
;
private
Long
id
;
@Column
(
name
=
"agen_iden"
)
@Column
(
name
=
"agen_iden"
)
...
@@ -71,4 +70,5 @@ public class Agent implements Serializable {
...
@@ -71,4 +70,5 @@ public class Agent implements Serializable {
@OneToMany
(
mappedBy
=
"agent"
)
@OneToMany
(
mappedBy
=
"agent"
)
private
List
<
FrequentQuestion
>
frequentQuestions
;
private
List
<
FrequentQuestion
>
frequentQuestions
;
}
}
src/main/java/com/bytesw/bytebot/model/BusinessParameter.java
View file @
a78ad984
...
@@ -15,7 +15,9 @@ import java.math.BigInteger;
...
@@ -15,7 +15,9 @@ import java.math.BigInteger;
@Entity
@Entity
@Table
(
name
=
"AVB_BUSINESS_PARAMETER"
)
@Table
(
name
=
"AVB_BUSINESS_PARAMETER"
)
@NamedQuery
(
name
=
"BusinessParameter.findByPK"
,
query
=
"Select u from BusinessParameter u where u.id = ?1"
)
@NamedQuery
(
name
=
"BusinessParameter.findByPK"
,
query
=
"Select u from BusinessParameter u where u.id = ?1"
)
@Getter
@Setter
@EqualsAndHashCode
@ToString
(
exclude
=
"id"
)
@Getter
@Setter
@EqualsAndHashCode
@ToString
(
exclude
=
"id"
)
public
class
BusinessParameter
implements
Serializable
{
public
class
BusinessParameter
implements
Serializable
{
@Id
@Id
...
...
src/main/java/com/bytesw/bytebot/model/BusinessParameterConfiguration.java
View file @
a78ad984
...
@@ -11,7 +11,6 @@ import java.io.Serializable;
...
@@ -11,7 +11,6 @@ import java.io.Serializable;
import
java.math.BigInteger
;
import
java.math.BigInteger
;
import
java.time.OffsetDateTime
;
import
java.time.OffsetDateTime
;
@Audited
@Audited
@Entity
@Entity
@Table
(
name
=
"AVB_BUSINESS_PARAMETER_CONFIG"
)
@Table
(
name
=
"AVB_BUSINESS_PARAMETER_CONFIG"
)
...
@@ -21,8 +20,8 @@ public class BusinessParameterConfiguration implements Serializable, Comparable<
...
@@ -21,8 +20,8 @@ public class BusinessParameterConfiguration implements Serializable, Comparable<
@Id
@Id
@Column
(
name
=
"BUPC_ID"
)
@Column
(
name
=
"BUPC_ID"
)
@SequenceGenerator
(
name
=
"AVB_BUSINESS_PARAMETER_CONFIG_GEN
ERATOR"
,
sequenceName
=
"AVB_BUSINESS_PARAM
_CONFIG_SEQ"
,
initialValue
=
1
,
allocationSize
=
1
)
@SequenceGenerator
(
name
=
"AVB_BUSINESS_PARAMETER_CONFIG_GEN
"
,
sequenceName
=
"AVB_BUSINESS_PARAMETER
_CONFIG_SEQ"
,
initialValue
=
1
,
allocationSize
=
1
)
@GeneratedValue
(
strategy
=
GenerationType
.
SEQUENCE
,
generator
=
"AVB_BUSINESS_PARAMETER_CONFIG_GEN
ERATOR
"
)
@GeneratedValue
(
strategy
=
GenerationType
.
SEQUENCE
,
generator
=
"AVB_BUSINESS_PARAMETER_CONFIG_GEN"
)
private
BigInteger
id
;
private
BigInteger
id
;
@Version
@Version
...
...
src/main/java/com/bytesw/bytebot/model/CalendarException.java
View file @
a78ad984
...
@@ -28,8 +28,8 @@ public abstract class CalendarException implements Serializable {
...
@@ -28,8 +28,8 @@ public abstract class CalendarException implements Serializable {
@Id
@Id
@Column
(
name
=
"CALE_EXC_ID"
)
@Column
(
name
=
"CALE_EXC_ID"
)
//
@SequenceGenerator(name = "AVB_CALENDAR_EXCEPTION_GENERATOR", sequenceName = "AVB_CALENDAR_EXCEPTION_SEQ", initialValue = 1, allocationSize = 1)
@SequenceGenerator
(
name
=
"AVB_CALENDAR_EXCEPTION_GENERATOR"
,
sequenceName
=
"AVB_CALENDAR_EXCEPTION_SEQ"
,
initialValue
=
1
,
allocationSize
=
1
)
//
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "AVB_CALENDAR_EXCEPTION_GENERATOR")
@GeneratedValue
(
strategy
=
GenerationType
.
SEQUENCE
,
generator
=
"AVB_CALENDAR_EXCEPTION_GENERATOR"
)
private
BigInteger
id
;
private
BigInteger
id
;
@Version
@Version
...
...
src/main/java/com/bytesw/bytebot/model/CalendarExceptionFull.java
View file @
a78ad984
...
@@ -28,8 +28,8 @@ public class CalendarExceptionFull implements Serializable {
...
@@ -28,8 +28,8 @@ public class CalendarExceptionFull implements Serializable {
@Id
@Id
@Column
(
name
=
"CALE_EXC_ID"
)
@Column
(
name
=
"CALE_EXC_ID"
)
//
@SequenceGenerator(name = "AVB_CALENDAR_EXCEPTION_GENERATOR", sequenceName = "AVB_CALENDAR_EXCEPTION_SEQ", initialValue = 1, allocationSize = 1)
@SequenceGenerator
(
name
=
"AVB_CALENDAR_EXCEPTION_GENERATOR"
,
sequenceName
=
"AVB_CALENDAR_EXCEPTION_SEQ"
,
initialValue
=
1
,
allocationSize
=
1
)
//
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "AVB_CALENDAR_EXCEPTION_GENERATOR")
@GeneratedValue
(
strategy
=
GenerationType
.
SEQUENCE
,
generator
=
"AVB_CALENDAR_EXCEPTION_GENERATOR"
)
private
BigInteger
id
;
private
BigInteger
id
;
@Version
@Version
...
...
src/main/java/com/bytesw/bytebot/model/Channel.java
View file @
a78ad984
...
@@ -27,9 +27,8 @@ public class Channel {
...
@@ -27,9 +27,8 @@ public class Channel {
@Id
@Id
@Column
(
name
=
"CHAN_ID"
)
@Column
(
name
=
"CHAN_ID"
)
@GeneratedValue
(
strategy
=
GenerationType
.
TABLE
,
generator
=
"AVB_CHANNEL_GENERATOR"
)
@SequenceGenerator
(
name
=
"AVB_CHANNEL_GENERATOR"
,
sequenceName
=
"AVB_CHANNEL_SEQ"
,
initialValue
=
1
,
allocationSize
=
1
)
@TableGenerator
(
name
=
"AVB_CHANNEL_GENERATOR"
,
table
=
"SEQUENCE_TABLE"
,
pkColumnName
=
"SEQ_NAME"
,
valueColumnName
=
"SEQ_COUNT"
,
@GeneratedValue
(
strategy
=
GenerationType
.
SEQUENCE
,
generator
=
"AVB_CHANNEL_GENERATOR"
)
pkColumnValue
=
"AVB_CHANNEL_SEQ"
,
allocationSize
=
1
)
private
Long
id
;
private
Long
id
;
@Column
(
name
=
"CHAN_IDEN"
)
@Column
(
name
=
"CHAN_IDEN"
)
...
...
src/main/java/com/bytesw/bytebot/model/ChannelParam.java
View file @
a78ad984
...
@@ -29,9 +29,8 @@ public class ChannelParam {
...
@@ -29,9 +29,8 @@ public class ChannelParam {
@Id
@Id
@Column
(
name
=
"CHPA_ID"
)
@Column
(
name
=
"CHPA_ID"
)
@GeneratedValue
(
strategy
=
GenerationType
.
TABLE
,
generator
=
"AVB_CHANNEL_PARAM_GENERATOR"
)
@SequenceGenerator
(
name
=
"AVB_CHANNEL_PARAM_GENERATOR"
,
sequenceName
=
"AVB_CHANNEL_PARAM_SEQ"
,
initialValue
=
1
,
allocationSize
=
1
)
@TableGenerator
(
name
=
"AVB_CHANNEL_PARAM_GENERATOR"
,
table
=
"SEQUENCE_TABLE"
,
pkColumnName
=
"SEQ_NAME"
,
valueColumnName
=
"SEQ_COUNT"
,
@GeneratedValue
(
strategy
=
GenerationType
.
SEQUENCE
,
generator
=
"AVB_CHANNEL_PARAM_GENERATOR"
)
pkColumnValue
=
"AVB_CHANNEL_PARAM_SEQ"
,
allocationSize
=
1
)
private
Long
id
;
private
Long
id
;
@Column
(
name
=
"CHPA_IDEN"
)
@Column
(
name
=
"CHPA_IDEN"
)
...
...
src/main/java/com/bytesw/bytebot/model/Country.java
View file @
a78ad984
...
@@ -16,9 +16,8 @@ public class Country {
...
@@ -16,9 +16,8 @@ public class Country {
@Id
@Id
@Column
(
name
=
"coun_id"
)
@Column
(
name
=
"coun_id"
)
@GeneratedValue
(
strategy
=
GenerationType
.
TABLE
,
generator
=
"AVB_COUNTRY_GENERATOR"
)
@SequenceGenerator
(
name
=
"AVB_COUNTRY_GENERATOR"
,
sequenceName
=
"AVB_COUNTRY_SEQ"
,
initialValue
=
1
,
allocationSize
=
1
)
@TableGenerator
(
name
=
"AVB_COUNTRY_GENERATOR"
,
table
=
"SEQUENCE_TABLE"
,
pkColumnName
=
"SEQ_NAME"
,
valueColumnName
=
"SEQ_COUNT"
,
@GeneratedValue
(
strategy
=
GenerationType
.
SEQUENCE
,
generator
=
"AVB_COUNTRY_GENERATOR"
)
pkColumnValue
=
"AVB_COUNTRY_SEQ"
,
allocationSize
=
1
)
private
Long
id
;
private
Long
id
;
@Column
(
name
=
"coun_name"
,
nullable
=
false
)
@Column
(
name
=
"coun_name"
,
nullable
=
false
)
...
...
src/main/java/com/bytesw/bytebot/model/DeploymentChannel.java
View file @
a78ad984
...
@@ -30,9 +30,8 @@ public class DeploymentChannel {
...
@@ -30,9 +30,8 @@ public class DeploymentChannel {
@Id
@Id
@Column
(
name
=
"DCHA_ID"
)
@Column
(
name
=
"DCHA_ID"
)
@GeneratedValue
(
strategy
=
GenerationType
.
TABLE
,
generator
=
"AVB_DEPLOYMENT_CHANNEL_GENERATOR"
)
@SequenceGenerator
(
name
=
"AVB_DEPLOYMENT_CHANNEL_GENERATOR"
,
sequenceName
=
"AVB_DEPLOYMENT_CHANNEL_SEQ"
,
initialValue
=
1
,
allocationSize
=
1
)
@TableGenerator
(
name
=
"AVB_DEPLOYMENT_CHANNEL_GENERATOR"
,
table
=
"SEQUENCE_TABLE"
,
pkColumnName
=
"SEQ_NAME"
,
valueColumnName
=
"SEQ_COUNT"
,
@GeneratedValue
(
strategy
=
GenerationType
.
SEQUENCE
,
generator
=
"AVB_DEPLOYMENT_CHANNEL_GENERATOR"
)
pkColumnValue
=
"AVB_DEPLOYMENT_CHANNEL_SEQ"
,
allocationSize
=
1
)
private
Long
id
;
private
Long
id
;
@Column
(
name
=
"DCHA_NAME"
)
@Column
(
name
=
"DCHA_NAME"
)
...
...
src/main/java/com/bytesw/bytebot/model/DeploymentChannelParamValue.java
View file @
a78ad984
...
@@ -28,9 +28,8 @@ public class DeploymentChannelParamValue {
...
@@ -28,9 +28,8 @@ public class DeploymentChannelParamValue {
@Id
@Id
@Column
(
name
=
"CHPV_ID"
)
@Column
(
name
=
"CHPV_ID"
)
@GeneratedValue
(
strategy
=
GenerationType
.
TABLE
,
generator
=
"AVB_DEPLOYMENT_CHANNEL_PARAM_VALUE_GENERATOR"
)
@SequenceGenerator
(
name
=
"AVB_DEPLOYMENT_CHANNEL_PARAM_VALUE_GENERATOR"
,
sequenceName
=
"AVB_DEPLOYMENT_CHANNEL_PARAM_VALUE_SEQ"
,
initialValue
=
1
,
allocationSize
=
1
)
@TableGenerator
(
name
=
"AVB_DEPLOYMENT_CHANNEL_PARAM_VALUE_GENERATOR"
,
table
=
"SEQUENCE_TABLE"
,
pkColumnName
=
"SEQ_NAME"
,
valueColumnName
=
"SEQ_COUNT"
,
@GeneratedValue
(
strategy
=
GenerationType
.
SEQUENCE
,
generator
=
"AVB_DEPLOYMENT_CHANNEL_PARAM_VALUE_GENERATOR"
)
pkColumnValue
=
"AVB_DEPLOYMENT_CHANNEL_PARAM_VALUE_SEQ"
,
allocationSize
=
1
)
private
Long
id
;
private
Long
id
;
@ManyToOne
@ManyToOne
...
...
src/main/java/com/bytesw/bytebot/model/FrequentQuestion.java
View file @
a78ad984
...
@@ -33,9 +33,8 @@ import java.time.OffsetDateTime;
...
@@ -33,9 +33,8 @@ import java.time.OffsetDateTime;
public
class
FrequentQuestion
{
public
class
FrequentQuestion
{
@Id
@Id
@Column
(
name
=
"FQUE_ID"
)
@Column
(
name
=
"FQUE_ID"
)
@GeneratedValue
(
strategy
=
GenerationType
.
TABLE
,
generator
=
"AVB_FREQUENT_QUESTION_GENERATOR"
)
@SequenceGenerator
(
name
=
"AVB_FREQUENT_QUESTION_GENERATOR"
,
sequenceName
=
"AVB_FREQUENT_QUESTION_SEQ"
,
initialValue
=
1
,
allocationSize
=
1
)
@TableGenerator
(
name
=
"AVB_FREQUENT_QUESTION_GENERATOR"
,
table
=
"SEQUENCE_TABLE"
,
pkColumnName
=
"SEQ_NAME"
,
valueColumnName
=
"SEQ_COUNT"
,
@GeneratedValue
(
strategy
=
GenerationType
.
SEQUENCE
,
generator
=
"AVB_FREQUENT_QUESTION_GENERATOR"
)
pkColumnValue
=
"AVB_FREQUENT_QUESTION_SEQ"
,
initialValue
=
1
,
allocationSize
=
1
)
private
Long
id
;
private
Long
id
;
@Column
(
name
=
"FQUE_UUID"
)
@Column
(
name
=
"FQUE_UUID"
)
...
...
src/main/java/com/bytesw/bytebot/model/QuestionFile.java
View file @
a78ad984
...
@@ -6,17 +6,8 @@
...
@@ -6,17 +6,8 @@
package
com
.
bytesw
.
bytebot
.
model
;
package
com
.
bytesw
.
bytebot
.
model
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
import
javax.persistence.Basic
;
import
javax.persistence.*
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.FetchType
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.GenerationType
;
import
javax.persistence.Id
;
import
javax.persistence.Lob
;
import
javax.persistence.NamedQuery
;
import
javax.persistence.Table
;
import
javax.persistence.TableGenerator
;
import
lombok.EqualsAndHashCode
;
import
lombok.EqualsAndHashCode
;
import
lombok.Getter
;
import
lombok.Getter
;
import
lombok.NoArgsConstructor
;
import
lombok.NoArgsConstructor
;
...
@@ -35,10 +26,9 @@ import org.hibernate.annotations.Type;
...
@@ -35,10 +26,9 @@ import org.hibernate.annotations.Type;
public
class
QuestionFile
{
public
class
QuestionFile
{
@Id
@Id
@Column
(
name
=
"QUFI_ID"
)
@Column
(
name
=
"QUFI_ID"
)
@TableGenerator
(
name
=
"AVB_QUESTION_FILE_GENERATOR"
,
table
=
"SEQUENCE_TABLE"
,
pkColumnName
=
"SEQ_NAME"
,
@SequenceGenerator
(
name
=
"AVB_QUESTION_FILE_GENERATOR"
,
sequenceName
=
"AVB_QUESTION_FILE_SEQ"
,
initialValue
=
1
,
allocationSize
=
1
)
valueColumnName
=
"SEQ_COUNT"
,
pkColumnValue
=
"AVB_QUESTION_FILE_SEQ"
,
allocationSize
=
1
)
@GeneratedValue
(
strategy
=
GenerationType
.
SEQUENCE
,
generator
=
"AVB_QUESTION_FILE_GENERATOR"
)
@GeneratedValue
(
strategy
=
GenerationType
.
TABLE
,
generator
=
"AVB_QUESTION_FILE_GENERATOR"
)
private
Long
id
;
private
Long
id
;
@Column
(
name
=
"QUFI_UUID"
,
nullable
=
false
)
@Column
(
name
=
"QUFI_UUID"
,
nullable
=
false
)
...
...
src/main/java/com/bytesw/bytebot/model/SchedulerTask.java
View file @
a78ad984
...
@@ -25,8 +25,8 @@ public class SchedulerTask implements Serializable {
...
@@ -25,8 +25,8 @@ public class SchedulerTask implements Serializable {
@Id
@Id
@Column
(
name
=
"SHTA_ID"
)
@Column
(
name
=
"SHTA_ID"
)
//
@SequenceGenerator(name = "AVB_SCHEDULER_TASK_GENERATOR", sequenceName = "AVB_SCHEDULER_TASK_SEQ", initialValue = 1, allocationSize = 1)
@SequenceGenerator
(
name
=
"AVB_SCHEDULER_TASK_GENERATOR"
,
sequenceName
=
"AVB_SCHEDULER_TASK_SEQ"
,
initialValue
=
1
,
allocationSize
=
1
)
//
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "AVB_SCHEDULER_TASK_GENERATOR")
@GeneratedValue
(
strategy
=
GenerationType
.
SEQUENCE
,
generator
=
"AVB_SCHEDULER_TASK_GENERATOR"
)
private
BigInteger
id
;
private
BigInteger
id
;
@Version
@Version
...
...
src/main/java/com/bytesw/bytebot/model/Timezone.java
View file @
a78ad984
...
@@ -25,9 +25,8 @@ public class Timezone {
...
@@ -25,9 +25,8 @@ public class Timezone {
@Id
@Id
@Column
(
name
=
"tzon_id"
)
@Column
(
name
=
"tzon_id"
)
@GeneratedValue
(
strategy
=
GenerationType
.
TABLE
,
generator
=
"avb_timezone_generator"
)
@SequenceGenerator
(
name
=
"avb_timezone_generator"
,
sequenceName
=
"AVB_TIMEZONE_SEQ"
,
initialValue
=
1
,
allocationSize
=
1
)
@TableGenerator
(
name
=
"avb_timezone_generator"
,
table
=
"sequence_table"
,
pkColumnName
=
"seq_name"
,
valueColumnName
=
"seq_count"
,
@GeneratedValue
(
strategy
=
GenerationType
.
SEQUENCE
,
generator
=
"avb_timezone_generator"
)
pkColumnValue
=
"avb_timezone_seq"
,
allocationSize
=
1
)
private
Long
id
;
private
Long
id
;
@Column
(
name
=
"tzon_zone"
,
nullable
=
false
)
@Column
(
name
=
"tzon_zone"
,
nullable
=
false
)
...
...
src/main/java/com/bytesw/bytebot/model/WeekScheduler.java
View file @
a78ad984
...
@@ -26,8 +26,8 @@ public class WeekScheduler implements Serializable {
...
@@ -26,8 +26,8 @@ public class WeekScheduler implements Serializable {
@Id
@Id
@Column
(
name
=
"WESC_ID"
)
@Column
(
name
=
"WESC_ID"
)
//
@SequenceGenerator(name = "AVB_WEEK_SCHEDULER_GENERATOR", sequenceName = "AVB_WEEK_SCHEDULER_SEQ", initialValue = 1, allocationSize = 1)
@SequenceGenerator
(
name
=
"AVB_WEEK_SCHEDULER_GENERATOR"
,
sequenceName
=
"AVB_WEEK_SCHEDULER_SEQ"
,
initialValue
=
1
,
allocationSize
=
1
)
//
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "AVB_WEEK_SCHEDULER_GENERATOR")
@GeneratedValue
(
strategy
=
GenerationType
.
SEQUENCE
,
generator
=
"AVB_WEEK_SCHEDULER_GENERATOR"
)
private
BigInteger
id
;
private
BigInteger
id
;
@Version
@Version
...
...
src/main/java/com/bytesw/bytebot/service/BusinessParameterService.java
View file @
a78ad984
...
@@ -230,8 +230,8 @@ public class BusinessParameterService extends XDFService<BusinessParameter, Busi
...
@@ -230,8 +230,8 @@ public class BusinessParameterService extends XDFService<BusinessParameter, Busi
}
}
}
}
@Override
//
@Override
public
BusinessParameterBean
create
(
BusinessParameterBean
bean
)
{
public
BusinessParameterBean
create
BP
(
BusinessParameterBean
bean
)
{
BusinessParameter
model
=
new
BusinessParameter
();
BusinessParameter
model
=
new
BusinessParameter
();
BusinessParameterConfiguration
businessParameterConfiguration
=
new
BusinessParameterConfiguration
();
BusinessParameterConfiguration
businessParameterConfiguration
=
new
BusinessParameterConfiguration
();
if
(
this
.
existsByUK
(
bean
))
{
if
(
this
.
existsByUK
(
bean
))
{
...
...
src/main/java/com/bytesw/bytebot/service/GoalForActionService.java
View file @
a78ad984
...
@@ -128,7 +128,6 @@ public class GoalForActionService extends XDFService<GoalForActions, GoalForActi
...
@@ -128,7 +128,6 @@ public class GoalForActionService extends XDFService<GoalForActions, GoalForActi
}
}
Map
<
String
,
String
>
map
=
new
HashMap
<>();
Map
<
String
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
"IdAction"
,
String
.
valueOf
(
action
.
getId
()));
map
.
put
(
"IdAction"
,
String
.
valueOf
(
action
.
getId
()));
map
.
put
(
"desc"
,
action
.
getIdentifier
());
list
.
add
(
map
);
list
.
add
(
map
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment