Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
test
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
邬友楠
test
Commits
37c6c6d4
Commit
37c6c6d4
authored
Dec 25, 2019
by
雍欢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MySQL GUID
parent
4d1f3fd6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
10 deletions
+26
-10
MySQL5InnoDBDialect.java
...ain/java/com/huigou/data/dialect/MySQL5InnoDBDialect.java
+13
-0
DBLogApplicationImpl.java
...uigou/uasp/log/application/impl/DBLogApplicationImpl.java
+5
-7
application.properties
huigou-xt/src/main/resources/application.properties
+1
-1
spring-data.xml
huigou-xt/src/main/resources/config/spring/spring-data.xml
+5
-0
spring-jpa.xml
huigou-xt/src/main/resources/config/spring/spring-jpa.xml
+1
-1
spring-log-dataSource.xml
...rc/main/resources/config/spring/spring-log-dataSource.xml
+1
-1
No files found.
huigou-data/src/main/java/com/huigou/data/dialect/MySQL5InnoDBDialect.java
0 → 100644
View file @
37c6c6d4
package
com
.
huigou
.
data
.
dialect
;
/**
* @author yonghuan
* @since 1.1.3
*/
public
class
MySQL5InnoDBDialect
extends
org
.
hibernate
.
dialect
.
MySQL5InnoDBDialect
{
@Override
public
String
getSelectGUIDString
()
{
return
"select replace(uuid(),'-','')"
;
}
}
huigou-uasp/src/main/java/com/huigou/uasp/log/application/impl/DBLogApplicationImpl.java
View file @
37c6c6d4
...
@@ -53,17 +53,15 @@ public class DBLogApplicationImpl implements LogApplication {
...
@@ -53,17 +53,15 @@ public class DBLogApplicationImpl implements LogApplication {
public
void
savelog
(
BizLog
bizLog
,
BizLogDetail
bizLogDetail
)
{
public
void
savelog
(
BizLog
bizLog
,
BizLogDetail
bizLogDetail
)
{
Assert
.
notNull
(
bizLog
,
"参数bizlog不能为空。"
);
Assert
.
notNull
(
bizLog
,
"参数bizlog不能为空。"
);
Assert
.
notNull
(
bizLogDetail
,
"参数bizlogDetail不能为空。"
);
Assert
.
notNull
(
bizLogDetail
,
"参数bizlogDetail不能为空。"
);
// TODO 保存日志
bizLog
=
this
.
dbBizLogRepository
.
save
((
DBBizLog
)
bizLog
);
// bizLog = this.dbBizLogRepository.save((DBBizLog) bizLog);
bizLogDetail
.
setBizLogId
(
bizLog
.
getId
());
// bizLogDetail.setBizLogId(bizLog.getId());
this
.
dbBizLogDetailRepository
.
save
((
DBBizLogDetail
)
bizLogDetail
);
// this.dbBizLogDetailRepository.save((DBBizLogDetail) bizLogDetail);
}
}
@Override
@Override
public
void
savelog
(
BizLog
bizLog
)
{
public
void
savelog
(
BizLog
bizLog
)
{
Assert
.
notNull
(
bizLog
,
"参数bizlog不能为空。"
);
Assert
.
notNull
(
bizLog
,
"参数bizlog不能为空。"
);
// TODO 保存日志
bizLog
=
this
.
dbBizLogRepository
.
save
((
DBBizLog
)
bizLog
);
// bizLog = this.dbBizLogRepository.save((DBBizLog) bizLog);
}
}
@Override
@Override
...
...
huigou-xt/src/main/resources/application.properties
View file @
37c6c6d4
...
@@ -11,7 +11,7 @@ shiro.port=6379
...
@@ -11,7 +11,7 @@ shiro.port=6379
shiro.expire
=
18000
shiro.expire
=
18000
system.dataSource
=
dataSource
system.dataSource
=
dataSource
system.hibernate.dialect
=
org.hibernate.dialect.MySQL57
InnoDBDialect
system.hibernate.dialect
=
com.huigou.data.dialect.MySQL5
InnoDBDialect
sqlDialect
=
mysql
sqlDialect
=
mysql
#shiroFilter loginUrl
#shiroFilter loginUrl
...
...
huigou-xt/src/main/resources/config/spring/spring-data.xml
View file @
37c6c6d4
...
@@ -22,6 +22,11 @@
...
@@ -22,6 +22,11 @@
<property
name=
"queryXmlManager"
ref=
"queryXmlManager"
/>
<property
name=
"queryXmlManager"
ref=
"queryXmlManager"
/>
</bean>
</bean>
<bean
id=
"mapperScannerConfigurer"
class=
"com.topsunit.query.spring.mapper.MapperScannerConfigurer"
>
<property
name=
"basePackage"
value=
"com.huigou.**.mapper"
/>
<property
name=
"sqlExecutorBeanName"
value=
"sqlExecutorDao"
/>
</bean>
<bean
id=
"generalRepository"
class=
"com.huigou.data.repository.GeneralRepository"
>
<bean
id=
"generalRepository"
class=
"com.huigou.data.repository.GeneralRepository"
>
</bean>
</bean>
...
...
huigou-xt/src/main/resources/config/spring/spring-jpa.xml
View file @
37c6c6d4
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
</bean>
</bean>
<!-- 用于指定持久化实现厂商类 -->
<!-- 用于指定持久化实现厂商类 -->
<bean
id=
"persistenceProvider"
class=
"org.hibernate.
ejb.HibernatePersistence
"
/>
<bean
id=
"persistenceProvider"
class=
"org.hibernate.
jpa.HibernatePersistenceProvider
"
/>
<!-- 用于指定一些高级特性 -->
<!-- 用于指定一些高级特性 -->
<bean
id=
"jpaDialect"
class=
"org.springframework.orm.jpa.vendor.HibernateJpaDialect"
/>
<bean
id=
"jpaDialect"
class=
"org.springframework.orm.jpa.vendor.HibernateJpaDialect"
/>
...
...
huigou-xt/src/main/resources/config/spring/spring-log-dataSource.xml
View file @
37c6c6d4
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
<prop
key=
"hibernate.hbm2ddl.auto"
>
none
</prop>
<prop
key=
"hibernate.hbm2ddl.auto"
>
none
</prop>
<prop
key=
"hibernate.show_sql"
>
true
</prop>
<prop
key=
"hibernate.show_sql"
>
true
</prop>
<prop
key=
"hibernate.format_sql"
>
true
</prop>
<prop
key=
"hibernate.format_sql"
>
true
</prop>
<prop
key=
"hibernate.dialect"
>
org.hibernate.dialect.Oracle10gDialect
</prop>
<prop
key=
"hibernate.dialect"
>
${system.hibernate.dialect}
</prop>
<prop
key=
"hibernate.enable_lazy_load_no_trans"
>
true
</prop>
<prop
key=
"hibernate.enable_lazy_load_no_trans"
>
true
</prop>
</props>
</props>
</property>
</property>
...
...
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