Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
manager
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
reyun
manager
Commits
d37b79f6
Commit
d37b79f6
authored
Sep 24, 2020
by
lzxry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+1
parent
a84613ac
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
3 deletions
+18
-3
AuthDic.java
src/main/java/common/model/AuthDic.java
+3
-3
BarrioCityRepository.java
src/main/java/common/repository/BarrioCityRepository.java
+15
-0
No files found.
src/main/java/common/model/AuthDic.java
View file @
d37b79f6
...
@@ -5,7 +5,7 @@ import javax.persistence.Entity;
...
@@ -5,7 +5,7 @@ import javax.persistence.Entity;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Id
;
@Entity
//
@Entity
public
class
AuthDic
{
public
class
AuthDic
{
private
Long
id
;
private
Long
id
;
...
@@ -14,8 +14,8 @@ public class AuthDic {
...
@@ -14,8 +14,8 @@ public class AuthDic {
private
int
type
;
private
int
type
;
@Id
//
@Id
@GeneratedValue
//
@GeneratedValue
public
Long
getId
()
{
public
Long
getId
()
{
return
id
;
return
id
;
}
}
...
...
src/main/java/common/repository/BarrioCityRepository.java
0 → 100644
View file @
d37b79f6
package
common
.
repository
;
import
common.model.BarrioCity
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.Query
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.List
;
@Transactional
public
interface
BarrioCityRepository
extends
JpaRepository
<
BarrioCity
,
Long
>
{
@Query
(
value
=
"select * from barrio_city where parent_id = ?1"
,
nativeQuery
=
true
)
List
<
BarrioCity
>
findByParentId
(
long
parentId
);
}
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