Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
8a8d1985
Commit
8a8d1985
authored
Sep 12, 2018
by
neo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[dev] drop admin jpa entity
parent
ef68702d
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
99 additions
and
14 deletions
+99
-14
Const.java
atms-gen/src/main/java/pwc/taxtech/Const.java
+1
-1
Model.java
atms-gen/src/main/java/pwc/taxtech/atms/entity/Model.java
+1
-1
OperationLogRole.java
...c/main/java/pwc/taxtech/atms/entity/OperationLogRole.java
+1
-1
OrgServiceTemplateGroup.java
...java/pwc/taxtech/atms/entity/OrgServiceTemplateGroup.java
+80
-0
EntriesCheckDetailRepository.java
...taxtech/atms/repository/EntriesCheckDetailRepository.java
+2
-1
ModelRepository.java
...ain/java/pwc/taxtech/atms/repository/ModelRepository.java
+2
-1
OperationLogRepository.java
...a/pwc/taxtech/atms/repository/OperationLogRepository.java
+2
-1
OperationLogRoleRepository.java
...c/taxtech/atms/repository/OperationLogRoleRepository.java
+2
-1
WorkflowRepository.java
.../java/pwc/taxtech/atms/repository/WorkflowRepository.java
+2
-1
EntriesCheckDetail.java
...en/src/main/java/pwc/taxtech/drop/EntriesCheckDetail.java
+1
-1
OperationLog.java
atms-gen/src/main/java/pwc/taxtech/drop/OperationLog.java
+1
-1
Workflow.java
atms-gen/src/main/java/pwc/taxtech/drop/Workflow.java
+1
-1
databases-invalid-sql
...-gen/src/main/java/pwc/taxtech/drop/databases-invalid-sql
+1
-1
application-oracle.yml
atms-gen/src/main/resources/application-oracle.yml
+1
-1
GenGeneratorXml.java
atms-gen/src/test/java/com/neo/GenGeneratorXml.java
+1
-1
oracle-init.sql
atms-gen/src/test/java/resources/oracle-init.sql
+0
-0
No files found.
atms-gen/src/main/java/pwc/taxtech/Const.java
View file @
8a8d1985
...
@@ -2,7 +2,7 @@ package pwc.taxtech;
...
@@ -2,7 +2,7 @@ package pwc.taxtech;
public
class
Const
{
public
class
Const
{
// oracle
// oracle
public
static
final
String
DEF_BIG_STRING
=
"
blob
"
;
public
static
final
String
DEF_BIG_STRING
=
"
varchar2(500 char) default ' '
"
;
public
static
final
String
DEF_DEFAULT_DATE
=
"date default sysdate"
;
public
static
final
String
DEF_DEFAULT_DATE
=
"date default sysdate"
;
public
static
final
String
DEF_DEFAULT_STRING
=
"' '"
;
public
static
final
String
DEF_DEFAULT_STRING
=
"' '"
;
public
static
final
String
DEF_DEFAULT_NUMBER
=
"0"
;
public
static
final
String
DEF_DEFAULT_NUMBER
=
"0"
;
...
...
atms-gen/src/main/java/pwc/taxtech/
drop
/Model.java
→
atms-gen/src/main/java/pwc/taxtech/
atms/entity
/Model.java
View file @
8a8d1985
package
pwc
.
taxtech
.
drop
;
package
pwc
.
taxtech
.
atms
.
entity
;
import
org.hibernate.annotations.ColumnDefault
;
import
org.hibernate.annotations.ColumnDefault
;
...
...
atms-gen/src/main/java/pwc/taxtech/
drop
/OperationLogRole.java
→
atms-gen/src/main/java/pwc/taxtech/
atms/entity
/OperationLogRole.java
View file @
8a8d1985
package
pwc
.
taxtech
.
drop
;
package
pwc
.
taxtech
.
atms
.
entity
;
import
org.hibernate.annotations.ColumnDefault
;
import
org.hibernate.annotations.ColumnDefault
;
...
...
atms-gen/src/main/java/pwc/taxtech/atms/entity/OrgServiceTemplateGroup.java
0 → 100644
View file @
8a8d1985
package
pwc
.
taxtech
.
atms
.
entity
;
import
org.hibernate.annotations.ColumnDefault
;
import
javax.persistence.Basic
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
java.util.Objects
;
import
static
pwc
.
taxtech
.
Const
.*;
@Entity
@Table
(
name
=
"ORG_SERVICE_TEMPLATE_GROUP"
,
schema
=
PROJECT_ADMIN
,
catalog
=
""
)
public
class
OrgServiceTemplateGroup
{
private
Long
id
;
private
String
organizationId
;
private
String
serviceTypeId
;
private
Long
templateGroupId
;
@Id
@Column
(
name
=
"ID"
,
nullable
=
false
)
public
Long
getId
()
{
return
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
@Basic
@Column
(
name
=
"ORGANIZATION_ID"
,
nullable
=
false
,
length
=
128
)
@ColumnDefault
(
DEF_DEFAULT_STRING
)
public
String
getOrganizationId
()
{
return
organizationId
;
}
public
void
setOrganizationId
(
String
organizationId
)
{
this
.
organizationId
=
organizationId
;
}
@Basic
@Column
(
name
=
"SERVICE_TYPE_ID"
,
nullable
=
false
,
length
=
128
)
@ColumnDefault
(
DEF_DEFAULT_STRING
)
public
String
getServiceTypeId
()
{
return
serviceTypeId
;
}
public
void
setServiceTypeId
(
String
serviceTypeId
)
{
this
.
serviceTypeId
=
serviceTypeId
;
}
@Basic
@Column
(
name
=
"TEMPLATE_GROUP_ID"
,
nullable
=
false
)
@ColumnDefault
(
DEF_DEFAULT_NUMBER
)
public
Long
getTemplateGroupId
()
{
return
templateGroupId
;
}
public
void
setTemplateGroupId
(
Long
templateGroupId
)
{
this
.
templateGroupId
=
templateGroupId
;
}
@Override
public
boolean
equals
(
Object
o
)
{
if
(
this
==
o
)
return
true
;
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
return
false
;
OrgServiceTemplateGroup
that
=
(
OrgServiceTemplateGroup
)
o
;
return
id
==
that
.
id
&&
templateGroupId
==
that
.
templateGroupId
&&
Objects
.
equals
(
organizationId
,
that
.
organizationId
)
&&
Objects
.
equals
(
serviceTypeId
,
that
.
serviceTypeId
);
}
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
id
,
organizationId
,
serviceTypeId
,
templateGroupId
);
}
}
atms-gen/src/main/java/pwc/taxtech/atms/repository/EntriesCheckDetailRepository.java
View file @
8a8d1985
package
pwc
.
taxtech
.
atms
.
repository
;
package
pwc
.
taxtech
.
atms
.
repository
;
import
org.springframework.data.repository.CrudRepository
;
import
org.springframework.data.repository.CrudRepository
;
import
pwc.taxtech.
atms.entity
.EntriesCheckDetail
;
import
pwc.taxtech.
drop
.EntriesCheckDetail
;
public
interface
EntriesCheckDetailRepository
extends
CrudRepository
<
EntriesCheckDetail
,
String
>
{
public
interface
EntriesCheckDetailRepository
extends
CrudRepository
<
EntriesCheckDetail
,
String
>
{
}
}
\ No newline at end of file
atms-gen/src/main/java/pwc/taxtech/atms/repository/ModelRepository.java
View file @
8a8d1985
package
pwc
.
taxtech
.
atms
.
repository
;
package
pwc
.
taxtech
.
atms
.
repository
;
import
org.springframework.data.repository.CrudRepository
;
import
org.springframework.data.repository.CrudRepository
;
import
pwc.taxtech.
drop
.Model
;
import
pwc.taxtech.
atms.entity
.Model
;
public
interface
ModelRepository
extends
CrudRepository
<
Model
,
String
>
{
public
interface
ModelRepository
extends
CrudRepository
<
Model
,
String
>
{
}
}
\ No newline at end of file
atms-gen/src/main/java/pwc/taxtech/atms/repository/OperationLogRepository.java
View file @
8a8d1985
package
pwc
.
taxtech
.
atms
.
repository
;
package
pwc
.
taxtech
.
atms
.
repository
;
import
org.springframework.data.repository.CrudRepository
;
import
org.springframework.data.repository.CrudRepository
;
import
pwc.taxtech.
atms.entity
.OperationLog
;
import
pwc.taxtech.
drop
.OperationLog
;
public
interface
OperationLogRepository
extends
CrudRepository
<
OperationLog
,
String
>
{
public
interface
OperationLogRepository
extends
CrudRepository
<
OperationLog
,
String
>
{
}
}
\ No newline at end of file
atms-gen/src/main/java/pwc/taxtech/atms/repository/OperationLogRoleRepository.java
View file @
8a8d1985
package
pwc
.
taxtech
.
atms
.
repository
;
package
pwc
.
taxtech
.
atms
.
repository
;
import
org.springframework.data.repository.CrudRepository
;
import
org.springframework.data.repository.CrudRepository
;
import
pwc.taxtech.
drop
.OperationLogRole
;
import
pwc.taxtech.
atms.entity
.OperationLogRole
;
public
interface
OperationLogRoleRepository
extends
CrudRepository
<
OperationLogRole
,
String
>
{
public
interface
OperationLogRoleRepository
extends
CrudRepository
<
OperationLogRole
,
String
>
{
}
}
\ No newline at end of file
atms-gen/src/main/java/pwc/taxtech/atms/repository/WorkflowRepository.java
View file @
8a8d1985
package
pwc
.
taxtech
.
atms
.
repository
;
package
pwc
.
taxtech
.
atms
.
repository
;
import
org.springframework.data.repository.CrudRepository
;
import
org.springframework.data.repository.CrudRepository
;
import
pwc.taxtech.
atms.entity
.Workflow
;
import
pwc.taxtech.
drop
.Workflow
;
public
interface
WorkflowRepository
extends
CrudRepository
<
Workflow
,
String
>
{
public
interface
WorkflowRepository
extends
CrudRepository
<
Workflow
,
String
>
{
}
}
\ No newline at end of file
atms-gen/src/main/java/pwc/taxtech/
atms/entity
/EntriesCheckDetail.java
→
atms-gen/src/main/java/pwc/taxtech/
drop
/EntriesCheckDetail.java
View file @
8a8d1985
package
pwc
.
taxtech
.
atms
.
entity
;
package
pwc
.
taxtech
.
drop
;
import
org.hibernate.annotations.ColumnDefault
;
import
org.hibernate.annotations.ColumnDefault
;
...
...
atms-gen/src/main/java/pwc/taxtech/
atms/entity
/OperationLog.java
→
atms-gen/src/main/java/pwc/taxtech/
drop
/OperationLog.java
View file @
8a8d1985
package
pwc
.
taxtech
.
atms
.
entity
;
package
pwc
.
taxtech
.
drop
;
import
org.hibernate.annotations.ColumnDefault
;
import
org.hibernate.annotations.ColumnDefault
;
...
...
atms-gen/src/main/java/pwc/taxtech/
atms/entity
/Workflow.java
→
atms-gen/src/main/java/pwc/taxtech/
drop
/Workflow.java
View file @
8a8d1985
package
pwc
.
taxtech
.
atms
.
entity
;
package
pwc
.
taxtech
.
drop
;
import
javax.persistence.Basic
;
import
javax.persistence.Basic
;
import
javax.persistence.Column
;
import
javax.persistence.Column
;
...
...
atms-gen/src/
test/java/resources
/databases-invalid-sql
→
atms-gen/src/
main/java/pwc/taxtech/drop
/databases-invalid-sql
View file @
8a8d1985
表名超长
表名超长
organization_service_template_group -> org_service_template_group
organization_service_template_group -> org_service_template_group
*
OutputInvoiceTriggerSyncHistory -> OutputInvoiceTriggerSyncHist
OutputInvoiceTriggerSyncHistory -> OutputInvoiceTriggerSyncHist
OutputReconciliationConfiguration -> OutputReconciliationConfig
OutputReconciliationConfiguration -> OutputReconciliationConfig
OutputReconciliationEntityMapping -> OutputReconciliationMapping
OutputReconciliationEntityMapping -> OutputReconciliationMapping
...
...
atms-gen/src/main/resources/application-oracle.yml
View file @
8a8d1985
...
@@ -9,5 +9,5 @@ spring:
...
@@ -9,5 +9,5 @@ spring:
properties.hibernate
:
properties.hibernate
:
default_schema
:
tax_admin
default_schema
:
tax_admin
hibernate
:
hibernate
:
ddl-auto
:
upd
ate
ddl-auto
:
cre
ate
naming.physical-strategy
:
org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
naming.physical-strategy
:
org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
atms-gen/src/test/java/com/neo/GenGeneratorXml.java
View file @
8a8d1985
...
@@ -243,7 +243,7 @@ public class GenGeneratorXml {
...
@@ -243,7 +243,7 @@ public class GenGeneratorXml {
"\n"
+
"\n"
+
" <javaModelGenerator targetPackage=\"pwc.taxtech.atms"
+
(
isAdmin
?
"."
:
".vat."
)
+
"entity\" targetProject=\"../../src/main/java\">\n"
+
" <javaModelGenerator targetPackage=\"pwc.taxtech.atms"
+
(
isAdmin
?
"."
:
".vat."
)
+
"entity\" targetProject=\"../../src/main/java\">\n"
+
" <property name=\"trimStrings\" value=\"true\"/>\n"
+
" <property name=\"trimStrings\" value=\"true\"/>\n"
+
" "
+
(
isAdmin
?
"<property name=\"rootClass\" value=\"pwc.taxtech.atms.entit
i
y.BaseEntity\"/>"
:
""
)
+
"\n"
+
" "
+
(
isAdmin
?
"<property name=\"rootClass\" value=\"pwc.taxtech.atms.entity.BaseEntity\"/>"
:
""
)
+
"\n"
+
" </javaModelGenerator>\n"
+
" </javaModelGenerator>\n"
+
"\n"
+
"\n"
+
" <sqlMapGenerator targetPackage=\"pwc.taxtech.atms"
+
(
isAdmin
?
"."
:
".vat."
)
+
"dao\" targetProject=\"../../src/main/resources\">\n"
+
" <sqlMapGenerator targetPackage=\"pwc.taxtech.atms"
+
(
isAdmin
?
"."
:
".vat."
)
+
"dao\" targetProject=\"../../src/main/resources\">\n"
+
...
...
atms-gen/src/test/java/resources/oracle-init.sql
deleted
100644 → 0
View file @
ef68702d
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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