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
16c9203a
Commit
16c9203a
authored
Dec 20, 2021
by
Roberto Loayza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SchedulerTask
parent
2a50e491
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
6 deletions
+3
-6
SchedulerTaskBean.java
src/main/java/com/bytesw/bytebot/bean/SchedulerTaskBean.java
+1
-1
SchedulerTask.java
src/main/java/com/bytesw/bytebot/model/SchedulerTask.java
+0
-3
SchedulerTaskService.java
...java/com/bytesw/bytebot/service/SchedulerTaskService.java
+2
-2
No files found.
src/main/java/com/bytesw/bytebot/bean/SchedulerTaskBean.java
View file @
16c9203a
...
...
@@ -23,7 +23,7 @@ public class SchedulerTaskBean implements Serializable {
@Expose
private
String
stringParameters
;
@Expose
private
Long
etlId
;
private
Integer
etlId
;
@Expose
private
String
calendarID
;
@Expose
...
...
src/main/java/com/bytesw/bytebot/model/SchedulerTask.java
View file @
16c9203a
...
...
@@ -44,9 +44,6 @@ public class SchedulerTask implements Serializable {
@Column
(
name
=
"SHTA_CROEX"
,
nullable
=
false
)
private
String
cronExpression
;
@Column
(
name
=
"ETL_ID"
)
private
Long
etlId
;
@Column
(
name
=
"SHTA_PARAM"
)
private
String
stringParameters
;
...
...
src/main/java/com/bytesw/bytebot/service/SchedulerTaskService.java
View file @
16c9203a
...
...
@@ -37,7 +37,7 @@ public class SchedulerTaskService extends XDFService<SchedulerTask, SchedulerTas
}
BeanUtils
.
copyProperties
(
bean
,
model
);
model
.
setInternals
(
"Y"
.
equals
(
bean
.
getInternals
()));
model
.
set
EtlId
(
bean
.
getEtlId
());
model
.
set
ProcessETL
(
bean
.
getEtlId
());
if
(
bean
.
getCalendarID
()
==
null
)
{
throw
new
NotFoundException
(
"Calendar can not be null"
);
}
...
...
@@ -56,7 +56,7 @@ public class SchedulerTaskService extends XDFService<SchedulerTask, SchedulerTas
BeanUtils
.
copyProperties
(
model
,
bean
);
bean
.
setInternals
(
model
.
getInternals
().
booleanValue
()
?
"Y"
:
"N"
);
bean
.
setCalendarID
(
bean
.
getCalendarID
().
trim
());
bean
.
setEtlId
(
bean
.
getEtlId
());
bean
.
setEtlId
(
model
.
getProcessETL
());
// CalendarBean found = this.CalendarService.getById(bean.getCalendarID());
Optional
<
Calendar
>
calendarOptional
=
this
.
calendarRepository
.
findById
(
bean
.
getCalendarID
());
if
(!
calendarOptional
.
isPresent
())
{
...
...
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