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
3a37b2e1
Commit
3a37b2e1
authored
Nov 30, 2021
by
Roberto Loayza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mantenimiento SchedulerTask
parent
0f3e3745
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
13 deletions
+16
-13
SchedulerTaskBean.java
src/main/java/com/bytesw/bytebot/bean/SchedulerTaskBean.java
+3
-1
CalendarException.java
...main/java/com/bytesw/bytebot/model/CalendarException.java
+2
-2
SchedulerTask.java
src/main/java/com/bytesw/bytebot/model/SchedulerTask.java
+11
-10
No files found.
src/main/java/com/bytesw/bytebot/bean/SchedulerTaskBean.java
View file @
3a37b2e1
...
@@ -23,7 +23,9 @@ public class SchedulerTaskBean implements Serializable {
...
@@ -23,7 +23,9 @@ public class SchedulerTaskBean implements Serializable {
@Expose
@Expose
private
String
stringParameters
;
private
String
stringParameters
;
@Expose
@Expose
private
String
calendar
ID
;
private
String
calendar
;
@Expose
@Expose
private
String
calendarName
;
private
String
calendarName
;
@Expose
private
int
idEtl
;
}
}
src/main/java/com/bytesw/bytebot/model/CalendarException.java
View file @
3a37b2e1
...
@@ -27,8 +27,8 @@ public abstract class CalendarException implements Serializable {
...
@@ -27,8 +27,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/SchedulerTask.java
View file @
3a37b2e1
...
@@ -5,8 +5,6 @@ import lombok.EqualsAndHashCode;
...
@@ -5,8 +5,6 @@ import lombok.EqualsAndHashCode;
import
lombok.Getter
;
import
lombok.Getter
;
import
lombok.Setter
;
import
lombok.Setter
;
import
lombok.ToString
;
import
lombok.ToString
;
import
org.hibernate.annotations.NotFound
;
import
org.hibernate.annotations.NotFoundAction
;
import
org.hibernate.envers.Audited
;
import
org.hibernate.envers.Audited
;
import
javax.persistence.*
;
import
javax.persistence.*
;
...
@@ -16,7 +14,7 @@ import java.math.BigInteger;
...
@@ -16,7 +14,7 @@ import java.math.BigInteger;
@Audited
@Audited
@Entity
@Entity
@Table
(
name
=
"AVB_SCHEDULER_TASK"
)
@Table
(
name
=
"AVB_SCHEDULER_TASK"
)
@NamedQuery
(
name
=
"SchedulerTask.findByPK"
,
query
=
"Select u from SchedulerTask u where u.id = ?1"
)
@NamedQuery
(
name
=
"SchedulerTask
s
.findByPK"
,
query
=
"Select u from SchedulerTask u where u.id = ?1"
)
@Getter
@Getter
@Setter
@Setter
@EqualsAndHashCode
@EqualsAndHashCode
...
@@ -25,8 +23,8 @@ public class SchedulerTask implements Serializable {
...
@@ -25,8 +23,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
...
@@ -47,12 +45,15 @@ public class SchedulerTask implements Serializable {
...
@@ -47,12 +45,15 @@ public class SchedulerTask implements Serializable {
@Column
(
name
=
"SHTA_PARAM"
)
@Column
(
name
=
"SHTA_PARAM"
)
private
String
stringParameters
;
private
String
stringParameters
;
@Column
(
name
=
"CALE_ID"
)
private
String
calendarID
;
@ManyToOne
(
optional
=
false
)
@ManyToOne
(
optional
=
false
)
@NotFound
(
action
=
NotFoundAction
.
IGNORE
)
@JoinColumn
(
name
=
"CALE_ID"
,
referencedColumnName
=
"CALE_ID"
,
nullable
=
false
)
@JoinColumn
(
name
=
"cale_id"
,
referencedColumnName
=
"cale_id"
,
nullable
=
false
)
private
Calendar
calendar
;
private
Calendar
calendar
;
/*@ManyToOne(optional = false)
@JoinColumn(name = "ETL_ID", referencedColumnName = "ETL_ID", nullable = false)
private ProcessETL processETL;*/
@Column
(
name
=
"ETL_ID"
)
private
int
processETL
;
}
}
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