Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apollo
Project
Overview
Details
Activity
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
openSource
apollo
Commits
e2f3bcd2
Commit
e2f3bcd2
authored
Jul 13, 2016
by
lepdou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
e026c430
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
Cluster.java
...n/java/com/ctrip/framework/apollo/biz/entity/Cluster.java
+6
-9
No files found.
apollo-biz/src/main/java/com/ctrip/framework/apollo/biz/entity/Cluster.java
View file @
e2f3bcd2
...
...
@@ -16,7 +16,7 @@ import org.hibernate.annotations.Where;
@Table
(
name
=
"Cluster"
)
@SQLDelete
(
sql
=
"Update Cluster set isDeleted = 1 where id = ?"
)
@Where
(
clause
=
"isDeleted = 0"
)
public
class
Cluster
extends
BaseEntity
implements
Comparable
<
Cluster
>{
public
class
Cluster
extends
BaseEntity
implements
Comparable
<
Cluster
>
{
@Column
(
name
=
"Name"
,
nullable
=
false
)
private
String
name
;
...
...
@@ -46,19 +46,16 @@ public class Cluster extends BaseEntity implements Comparable<Cluster>{
@Override
public
int
compareTo
(
Cluster
o
)
{
if
(
o
==
null
){
if
(
o
==
null
)
{
return
1
;
}
long
selfId
=
getId
();
long
targetId
=
o
.
getId
();
if
(
selfId
>
targetId
){
if
(
getId
()
>
o
.
getId
())
{
return
1
;
}
else
if
(
selfId
==
targetId
){
}
if
(
getId
()
==
o
.
getId
())
{
return
0
;
}
else
{
return
-
1
;
}
return
-
1
;
}
}
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