From e6440a33d245de98d85cd0ba6155310e754bba3f Mon Sep 17 00:00:00 2001 From: wuxia Date: Sat, 30 Jun 2018 11:41:27 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E6=B7=BB=E5=8A=A0hibernate=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E7=9B=91=E5=90=AC=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- springboot-hibernate-listener-audit/pom.xml | 73 ++++++++ ...BootHibernateListenerAuditApplication.java | 59 ++++++ .../com/vesus/audit/AuditEntityAlias.java | 12 ++ .../java/com/vesus/audit/AuditFieldAlias.java | 12 ++ .../vesus/audit/AuditModifyFieldObject.java | 61 ++++++ .../com/vesus/audit/AuditOperationRecord.java | 174 ++++++++++++++++++ .../audit/AuditOperationRecordAware.java | 8 + .../com/vesus/audit/AuditOperationType.java | 74 ++++++++ .../java/com/vesus/audit/AuditPrimaryID.java | 11 ++ .../com/vesus/controller/TUserController.java | 63 +++++++ .../java/com/vesus/domain/AuditRecordLog.java | 122 ++++++++++++ .../src/main/java/com/vesus/domain/TUser.java | 88 +++++++++ .../listener/AuditOperationEventListener.java | 60 ++++++ .../AuditOperationRecordAwareImpl.java | 85 +++++++++ .../repository/AuditRecordLogRepository.java | 10 + .../com/vesus/repository/TUserRepository.java | 29 +++ .../vesus/service/AuditRecordLogService.java | 19 ++ .../java/com/vesus/service/TUserService.java | 40 ++++ .../imp/AuditRecordLogServiceImpl.java | 41 +++++ .../vesus/service/imp/TUserServiceImpl.java | 97 ++++++++++ .../src/main/resources/application.properties | 11 ++ 21 files changed, 1149 insertions(+) create mode 100644 springboot-hibernate-listener-audit/pom.xml create mode 100644 springboot-hibernate-listener-audit/src/main/java/com/vesus/SpringBootHibernateListenerAuditApplication.java create mode 100644 springboot-hibernate-listener-audit/src/main/java/com/vesus/audit/AuditEntityAlias.java create mode 100644 springboot-hibernate-listener-audit/src/main/java/com/vesus/audit/AuditFieldAlias.java create mode 100644 springboot-hibernate-listener-audit/src/main/java/com/vesus/audit/AuditModifyFieldObject.java create mode 100644 springboot-hibernate-listener-audit/src/main/java/com/vesus/audit/AuditOperationRecord.java create mode 100644 springboot-hibernate-listener-audit/src/main/java/com/vesus/audit/AuditOperationRecordAware.java create mode 100644 springboot-hibernate-listener-audit/src/main/java/com/vesus/audit/AuditOperationType.java create mode 100644 springboot-hibernate-listener-audit/src/main/java/com/vesus/audit/AuditPrimaryID.java create mode 100644 springboot-hibernate-listener-audit/src/main/java/com/vesus/controller/TUserController.java create mode 100644 springboot-hibernate-listener-audit/src/main/java/com/vesus/domain/AuditRecordLog.java create mode 100644 springboot-hibernate-listener-audit/src/main/java/com/vesus/domain/TUser.java create mode 100644 springboot-hibernate-listener-audit/src/main/java/com/vesus/listener/AuditOperationEventListener.java create mode 100644 springboot-hibernate-listener-audit/src/main/java/com/vesus/listener/AuditOperationRecordAwareImpl.java create mode 100644 springboot-hibernate-listener-audit/src/main/java/com/vesus/repository/AuditRecordLogRepository.java create mode 100644 springboot-hibernate-listener-audit/src/main/java/com/vesus/repository/TUserRepository.java create mode 100644 springboot-hibernate-listener-audit/src/main/java/com/vesus/service/AuditRecordLogService.java create mode 100644 springboot-hibernate-listener-audit/src/main/java/com/vesus/service/TUserService.java create mode 100644 springboot-hibernate-listener-audit/src/main/java/com/vesus/service/imp/AuditRecordLogServiceImpl.java create mode 100644 springboot-hibernate-listener-audit/src/main/java/com/vesus/service/imp/TUserServiceImpl.java create mode 100644 springboot-hibernate-listener-audit/src/main/resources/application.properties diff --git a/springboot-hibernate-listener-audit/pom.xml b/springboot-hibernate-listener-audit/pom.xml new file mode 100644 index 0000000..922b4cd --- /dev/null +++ b/springboot-hibernate-listener-audit/pom.xml @@ -0,0 +1,73 @@ + + + + spring-boot-demo + com.vesus + 0.0.1-SNAPSHOT + + 4.0.0 + + springboot-hibernate-listener-audit + + + + + org.springframework.boot + spring-boot-starter-web + + + + org.springframework.boot + spring-boot-starter-data-jpa + + + + mysql + mysql-connector-java + + + + com.alibaba + druid + 1.0.29 + + + org.springframework.boot + spring-boot-starter-test + + + org.springframework.boot + spring-boot-devtools + + + org.springframework.boot + spring-boot-actuator + + + org.hibernate + hibernate-envers + 5.0.12.Final + + + + + + + + org.springframework.boot + spring-boot-maven-plugin + 1.4.2.RELEASE + + + true + + + + org.springframework.boot + spring-boot-maven-plugin + + + + \ No newline at end of file diff --git a/springboot-hibernate-listener-audit/src/main/java/com/vesus/SpringBootHibernateListenerAuditApplication.java b/springboot-hibernate-listener-audit/src/main/java/com/vesus/SpringBootHibernateListenerAuditApplication.java new file mode 100644 index 0000000..2e7ee34 --- /dev/null +++ b/springboot-hibernate-listener-audit/src/main/java/com/vesus/SpringBootHibernateListenerAuditApplication.java @@ -0,0 +1,59 @@ +package com.vesus; + +import com.vesus.audit.AuditOperationRecordAware; +import com.vesus.listener.AuditOperationEventListener; +import com.vesus.listener.AuditOperationRecordAwareImpl; +import org.hibernate.SessionFactory; +import org.hibernate.event.service.spi.EventListenerRegistry; +import org.hibernate.event.spi.EventType; +import org.hibernate.internal.SessionFactoryImpl; +import org.hibernate.jpa.HibernateEntityManagerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.context.ConfigurableApplicationContext; +import org.springframework.context.annotation.Bean; +import org.springframework.data.jpa.repository.config.EnableJpaAuditing; +import org.springframework.data.jpa.repository.config.EnableJpaRepositories; +import org.springframework.transaction.annotation.EnableTransactionManagement; + +import javax.annotation.PostConstruct; +import javax.annotation.Resource; + +@SpringBootApplication +@EnableTransactionManagement +@EnableJpaRepositories +public class SpringBootHibernateListenerAuditApplication { + public static void main(String[] args) { + SpringApplication.run(SpringBootHibernateListenerAuditApplication.class, args); + } + + + @Bean + AuditOperationRecordAware auditOperationRecordAware() { + return new AuditOperationRecordAwareImpl(); + } + + + @Bean + public SessionFactory sessionFactory(HibernateEntityManagerFactory hemf) { + return hemf.getSessionFactory(); + } + + @Autowired + private AuditOperationEventListener auditOperationEventListener; + + @Resource + private SessionFactory sessionFactory; + + @PostConstruct + public void registerListeners() { + EventListenerRegistry registry = ((SessionFactoryImpl) sessionFactory).getServiceRegistry().getService( + EventListenerRegistry.class); + registry.getEventListenerGroup(EventType.POST_INSERT).appendListener(auditOperationEventListener); + registry.getEventListenerGroup(EventType.POST_UPDATE).appendListener(auditOperationEventListener); + registry.getEventListenerGroup(EventType.POST_DELETE).appendListener(auditOperationEventListener); + } + + +} diff --git a/springboot-hibernate-listener-audit/src/main/java/com/vesus/audit/AuditEntityAlias.java b/springboot-hibernate-listener-audit/src/main/java/com/vesus/audit/AuditEntityAlias.java new file mode 100644 index 0000000..e1b46ff --- /dev/null +++ b/springboot-hibernate-listener-audit/src/main/java/com/vesus/audit/AuditEntityAlias.java @@ -0,0 +1,12 @@ +package com.vesus.audit; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.TYPE) +public @interface AuditEntityAlias { + String value(); +} diff --git a/springboot-hibernate-listener-audit/src/main/java/com/vesus/audit/AuditFieldAlias.java b/springboot-hibernate-listener-audit/src/main/java/com/vesus/audit/AuditFieldAlias.java new file mode 100644 index 0000000..dcb8cbe --- /dev/null +++ b/springboot-hibernate-listener-audit/src/main/java/com/vesus/audit/AuditFieldAlias.java @@ -0,0 +1,12 @@ +package com.vesus.audit; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.FIELD) +public @interface AuditFieldAlias { + String value() default ""; +} diff --git a/springboot-hibernate-listener-audit/src/main/java/com/vesus/audit/AuditModifyFieldObject.java b/springboot-hibernate-listener-audit/src/main/java/com/vesus/audit/AuditModifyFieldObject.java new file mode 100644 index 0000000..e2940f8 --- /dev/null +++ b/springboot-hibernate-listener-audit/src/main/java/com/vesus/audit/AuditModifyFieldObject.java @@ -0,0 +1,61 @@ +package com.vesus.audit; + +public class AuditModifyFieldObject { + + private Object oldValue; + private Object newValue; + private Object property; + private Object type; + private String alias; + private boolean isAudit; + + + public String getAlias() { + return alias; + } + + public void setAlias(String alias) { + this.alias = alias; + } + + public Object getOldValue() { + return oldValue; + } + + + public void setOldValue(Object oldValue) { + this.oldValue = oldValue; + } + + public Object getNewValue() { + return newValue; + } + + public void setNewValue(Object newValue) { + this.newValue = newValue; + } + + public Object getProperty() { + return property; + } + + public void setProperty(Object property) { + this.property = property; + } + + public Object getType() { + return type; + } + + public void setType(Object type) { + this.type = type; + } + + public boolean isAudit() { + return isAudit; + } + + public void setAudit(boolean audit) { + isAudit = audit; + } +} diff --git a/springboot-hibernate-listener-audit/src/main/java/com/vesus/audit/AuditOperationRecord.java b/springboot-hibernate-listener-audit/src/main/java/com/vesus/audit/AuditOperationRecord.java new file mode 100644 index 0000000..f646d79 --- /dev/null +++ b/springboot-hibernate-listener-audit/src/main/java/com/vesus/audit/AuditOperationRecord.java @@ -0,0 +1,174 @@ +package com.vesus.audit; + +import org.hibernate.type.Type; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; + +import java.io.Serializable; +import java.lang.reflect.Field; +import java.time.LocalDateTime; +import java.time.ZoneId; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +@Component +public class AuditOperationRecord { + + private AuditOperationRecordAware auditOperationRecordAware; + + @Autowired(required = false) + public void setAuditOperationRecordAware(AuditOperationRecordAware auditOperationRecordAware) { + this.auditOperationRecordAware = auditOperationRecordAware; + } + + public boolean onSaveRecord(Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types) { + System.out.println("=========添加============》"); + boolean result = processor(entity, id, state, null, propertyNames, types); + return result; + } + + + public boolean onUpdateRecord(Object entity, Serializable id, Object[] currentState, Object[] previousState, String[] propertyNames, Type[] types) { + System.out.println("=========更新============》"); + boolean result = processor(entity, id, currentState, previousState, propertyNames, types); + return result; + } + + + public void onDelete(Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types) { + System.out.println("=========删除============》"); + processor(entity, id, null, state, propertyNames, types); + } + + /** + * 处理相同变更实体信息的公共类 + * + * @param entity + * 操作实体对象 + * @param id + * 操作实体主键编号 + * @param currentState + * 当前更改字段对象数组 + * @param previousState + * 变更前字段信息对象数组 + * @param propertyNames + * 英文属性名数组 + * @param types + * 属性类型数组hibernate封装 + * @return + */ + private boolean processor(Object entity, Serializable id, Object[] currentState, Object[] previousState, String[] propertyNames, Type[] types) { + Class entityClass = entity.getClass(); + if (auditOperationRecordAware == null) { + return true; + } + if (!entityClass.isAnnotationPresent(AuditEntityAlias.class)) { + return true; + } + AuditEntityAlias entityAlias = entityClass.getAnnotation(AuditEntityAlias.class); + String tableName = entityAlias.value(); + + //设置别名和审计字段长度 + boolean[] isAudits = new boolean[propertyNames.length]; + String[] alias = new String[propertyNames.length]; + try { + for (int i = 0; i < propertyNames.length; i++) { + //Field field = entityClass.getField(propertyNames[i]); + Field field = entityClass.getDeclaredField(propertyNames[i]); + field.setAccessible(true); + if (field.isAnnotationPresent(AuditFieldAlias.class)) { + AuditFieldAlias auditFieldAlias = field.getAnnotation(AuditFieldAlias.class); + isAudits[i] = true; + alias[i] = auditFieldAlias.value(); + } else { + isAudits[i] = false; + alias[i] = ""; + } + } + } catch (NoSuchFieldException e) { + System.err.println(e.getMessage()); + } + + //生成改变字段信息列表 + List auditModifyFieldObject = getAuditModifyFieldObject(currentState, previousState, propertyNames, types, alias, isAudits); + long timestamp = Date.from(LocalDateTime.now().atZone(ZoneId.systemDefault()).toInstant()).getTime(); + AuditOperationType operationType = AuditOperationType.UPDATE; + //根据变更对象是否为空判断操作类型 + if (previousState != null && currentState != null) { + operationType = AuditOperationType.UPDATE; + } + if (previousState == null && currentState != null) { + operationType = AuditOperationType.INSERT; + } + if (previousState != null && currentState == null) { + operationType = AuditOperationType.DELETE; + } + if (auditOperationRecordAware != null) { + auditOperationRecordAware.saveAuditOperationLog(tableName, id, auditModifyFieldObject, timestamp, operationType); + } + return true; + + } + + /** + * 获取自定义封装的字段修改对象类,用来保存更改前后的字段变化信息 + * + * @param currentState + * 操作后对象,也是当前对象 + * @param previousState + * 变更前对象 + * @param propertyNames + * 属性英文变量名称 + * @param types + * 属性类型,这里是hibernate帮忙生成的一个类型 + * @param alias + * 中文别名,这个属性需要结合 AuditFieldAlias 注解使用才能获取别名 + * @param isAudits + * 是否审计,如果为true表示此字段需要保存更改变更,false相反 + * @return + */ + private List getAuditModifyFieldObject(Object[] currentState, Object[] previousState, String[] propertyNames, Type[] types, String[] alias, boolean[] isAudits) { + List list = new ArrayList<>(10); + int fieldCount = 0; + //获取字段总个数 + if (currentState != null && currentState.length > 0 && fieldCount == 0) { + fieldCount = currentState.length; + } + if (previousState != null && previousState.length > 0 && fieldCount == 0) { + fieldCount = previousState.length; + } + for (int i = 0; i < fieldCount; i++) { + AuditModifyFieldObject auditModifyObject = new AuditModifyFieldObject(); + //设置更改前的值 + if (previousState != null && previousState[i] != null) { + auditModifyObject.setOldValue(previousState[i]); + } + // 设置更改后的当前值 + if (currentState != null && currentState[i] != null) { + auditModifyObject.setNewValue(currentState[i]); + } + //设置属性名 + if (propertyNames != null && propertyNames[i] != null) { + auditModifyObject.setProperty(propertyNames[i]); + } + //设置类型 + if (types != null && types[i] != null) { + auditModifyObject.setType(types[i]); + } + // 设置别名 + if (alias != null && alias[i] != null) { + auditModifyObject.setAlias(alias[i]); + } + // 是否审计 + if (isAudits != null && isAudits[i]) { + auditModifyObject.setAudit(true); + } else { + auditModifyObject.setAudit(false); + } + list.add(auditModifyObject); + } + return list; + } + +} diff --git a/springboot-hibernate-listener-audit/src/main/java/com/vesus/audit/AuditOperationRecordAware.java b/springboot-hibernate-listener-audit/src/main/java/com/vesus/audit/AuditOperationRecordAware.java new file mode 100644 index 0000000..676fff1 --- /dev/null +++ b/springboot-hibernate-listener-audit/src/main/java/com/vesus/audit/AuditOperationRecordAware.java @@ -0,0 +1,8 @@ +package com.vesus.audit; + +import java.io.Serializable; +import java.util.List; + +public interface AuditOperationRecordAware { + void saveAuditOperationLog(String tableName, Serializable id, List auditModifyFieldObject, long timestamp, AuditOperationType operationType); +} diff --git a/springboot-hibernate-listener-audit/src/main/java/com/vesus/audit/AuditOperationType.java b/springboot-hibernate-listener-audit/src/main/java/com/vesus/audit/AuditOperationType.java new file mode 100644 index 0000000..cdbe7ea --- /dev/null +++ b/springboot-hibernate-listener-audit/src/main/java/com/vesus/audit/AuditOperationType.java @@ -0,0 +1,74 @@ +package com.vesus.audit; + +/** + * 审计操作对象类别枚举 + */ +public enum AuditOperationType { + INSERT((byte) 0) { + @Override + public String getValue() { + return "新增"; + } + }, UPDATE((byte) 1) { + @Override + public String getValue() { + return "修改"; + } + }, DELETE((byte) 2) { + @Override + public String getValue() { + return "删除"; + } + }; + + private String value; + private Byte representation; + + AuditOperationType(byte representation) { + this.representation = representation; + } + + AuditOperationType() { + value = toString(); + } + + public static AuditOperationType parse(final String value) { + AuditOperationType operation = null; + for (final AuditOperationType op : AuditOperationType.values()) { + if (op.getValue().equals(value)) { + operation = op; + break; + } + } + return operation; + } + + public static AuditOperationType parseNumber(final Object representation) { + System.out.println(representation.getClass().getName()); + if (representation == null || !(representation instanceof Byte)) { + return null; + } + switch ((Byte) representation) { + case 0: { + return INSERT; + } + case 1: { + return UPDATE; + } + case 2: { + return DELETE; + } + default: { + throw new IllegalArgumentException("Unknown representation: " + representation); + } + } + } + + public String getValue() { + return value; + } + + public Byte getRepresentation() { + return representation; + } +} \ No newline at end of file diff --git a/springboot-hibernate-listener-audit/src/main/java/com/vesus/audit/AuditPrimaryID.java b/springboot-hibernate-listener-audit/src/main/java/com/vesus/audit/AuditPrimaryID.java new file mode 100644 index 0000000..2abd7d6 --- /dev/null +++ b/springboot-hibernate-listener-audit/src/main/java/com/vesus/audit/AuditPrimaryID.java @@ -0,0 +1,11 @@ +package com.vesus.audit; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.FIELD) +public @interface AuditPrimaryID { +} diff --git a/springboot-hibernate-listener-audit/src/main/java/com/vesus/controller/TUserController.java b/springboot-hibernate-listener-audit/src/main/java/com/vesus/controller/TUserController.java new file mode 100644 index 0000000..586f394 --- /dev/null +++ b/springboot-hibernate-listener-audit/src/main/java/com/vesus/controller/TUserController.java @@ -0,0 +1,63 @@ +package com.vesus.controller; + +import com.vesus.domain.TUser; +import com.vesus.service.TUserService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import java.util.List; +import java.util.Optional; + +@RestController +@RequestMapping("/tUserController") +public class TUserController { + + @Autowired + private TUserService tUserService; + + @RequestMapping("/save") + public TUser save(TUser tUser) { + return tUserService.save(tUser); + } + + @RequestMapping("/findOneById") + public TUser findOneById(Integer id) { + return tUserService.findOne(id); + } + + @RequestMapping("/findOptionalOneById") + public Optional findOptionOneById(Integer id) { + return tUserService.findById(id); + } + + @RequestMapping("/existsById") + public boolean existsById(Integer id) { + return tUserService.existsById(id); + } + + @RequestMapping("/findAll") + public List findAll() { + return tUserService.findAll(); + } + + @RequestMapping("/findAllByEntityManager") + public List findAllByEntityManager() { + return tUserService.findAllByEntityManager("select * from t_user", TUser.class); + } + + @RequestMapping("/count") + public Long count() { + return tUserService.count(); + } + + @RequestMapping("/deleteById") + public void deleteById(Integer id) { + tUserService.deleteById(id); + } + + @RequestMapping("/deleteByEntity") + public void delete(TUser tUser) { + tUserService.delete(tUser); + } +} diff --git a/springboot-hibernate-listener-audit/src/main/java/com/vesus/domain/AuditRecordLog.java b/springboot-hibernate-listener-audit/src/main/java/com/vesus/domain/AuditRecordLog.java new file mode 100644 index 0000000..00c8476 --- /dev/null +++ b/springboot-hibernate-listener-audit/src/main/java/com/vesus/domain/AuditRecordLog.java @@ -0,0 +1,122 @@ +package com.vesus.domain; + + +import javax.persistence.*; + +@Entity +@Table(name = "t_audit_record_log") +public class AuditRecordLog { + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + @Column(name = "id") + private int id; + + @Column(name = "t_entity_name") + private String entityName; + + @Column(name = "t_property_name") + private String propertyName; + + @Column(name = "t_alias") + private String alias; + + @Column(name = "t_old_value") + private String oldValue; + + @Column(name = "t_new_value") + private String newValue; + + @Column(name = "t_user_id") + private int userId; + + @Column(name = "t_user_name") + private String userName; + + @Column(name = "t_modified_date") + private String modifiedDate; + + @Column(name = "t_description") + private String description; + + public int getId() { + return id; + } + + public void setId(int id) { + this.id = id; + } + + public String getPropertyName() { + return propertyName; + } + + public void setPropertyName(String propertyName) { + this.propertyName = propertyName; + } + + public String getEntityName() { + return entityName; + } + + public void setEntityName(String entityName) { + this.entityName = entityName; + } + + + public String getAlias() { + return alias; + } + + public void setAlias(String alias) { + this.alias = alias; + } + + public String getOldValue() { + return oldValue; + } + + public void setOldValue(String oldValue) { + this.oldValue = oldValue; + } + + public String getNewValue() { + return newValue; + } + + public void setNewValue(String newValue) { + this.newValue = newValue; + } + + public int getUserId() { + return userId; + } + + public void setUserId(int userId) { + this.userId = userId; + } + + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + public String getModifiedDate() { + return modifiedDate; + } + + public void setModifiedDate(String modifiedDate) { + this.modifiedDate = modifiedDate; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } +} diff --git a/springboot-hibernate-listener-audit/src/main/java/com/vesus/domain/TUser.java b/springboot-hibernate-listener-audit/src/main/java/com/vesus/domain/TUser.java new file mode 100644 index 0000000..feff431 --- /dev/null +++ b/springboot-hibernate-listener-audit/src/main/java/com/vesus/domain/TUser.java @@ -0,0 +1,88 @@ +package com.vesus.domain; + +import com.vesus.audit.AuditEntityAlias; +import com.vesus.audit.AuditFieldAlias; +import com.vesus.audit.AuditPrimaryID; + +import javax.persistence.*; +import java.io.Serializable; + +/** + * @author wx11055@163.com + * @date 2018-06-27 23:19:28 + * Created by wuxia . + */ +@Entity +@Table(name = "t_user") +@AuditEntityAlias("用户信息表") +public class TUser implements Serializable { + + /** + * 编号 + */ + @Id + @GeneratedValue + @Column(name = "t_id") + @AuditPrimaryID + private Integer id; + + @Column(name = "t_address") + @AuditFieldAlias("联系地址") + private String tAddress; + + @Column(name = "t_age") + @AuditFieldAlias("年龄") + private Integer tAge; + + @Column(name = "t_name") + @AuditFieldAlias("姓名") + private String tName; + + @Column(name = "t_pwd") + @AuditFieldAlias("密码") + private String tPwd; + + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + + public String gettAddress() { + return tAddress; + } + + public void settAddress(String tAddress) { + this.tAddress = tAddress; + } + + public Integer gettAge() { + return tAge; + } + + public void settAge(Integer tAge) { + this.tAge = tAge; + } + + public String gettName() { + return tName; + } + + public void settName(String tName) { + this.tName = tName; + } + + public String gettPwd() { + return tPwd; + } + + public void settPwd(String tPwd) { + this.tPwd = tPwd; + } + + +} diff --git a/springboot-hibernate-listener-audit/src/main/java/com/vesus/listener/AuditOperationEventListener.java b/springboot-hibernate-listener-audit/src/main/java/com/vesus/listener/AuditOperationEventListener.java new file mode 100644 index 0000000..83f5c27 --- /dev/null +++ b/springboot-hibernate-listener-audit/src/main/java/com/vesus/listener/AuditOperationEventListener.java @@ -0,0 +1,60 @@ +package com.vesus.listener; + + +import com.vesus.audit.AuditOperationRecord; +import org.hibernate.event.internal.DefaultLoadEventListener; +import org.hibernate.event.spi.*; +import org.hibernate.persister.entity.EntityPersister; +import org.hibernate.type.Type; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; + +import java.io.Serializable; + +@Component +public class AuditOperationEventListener extends DefaultLoadEventListener implements PostInsertEventListener, PostUpdateEventListener, PostDeleteEventListener { + + @Autowired + AuditOperationRecord auditOperationRecord; + + public void onPostUpdate(PostUpdateEvent event) { + Object entity = event.getEntity(); + Object[] oldState = event.getOldState(); + Object[] state = event.getState(); + Serializable id = event.getId(); + EntityPersister persister = event.getPersister(); + String[] propertyNames = persister.getPropertyNames(); + Type[] types = persister.getPropertyTypes(); + auditOperationRecord.onUpdateRecord(entity, id, state, oldState, propertyNames, types); + } + + @Override + public void onPostDelete(PostDeleteEvent event) { + Object entity = event.getEntity(); + Object[] state = event.getDeletedState(); + Serializable id = event.getId(); + EntityPersister persister = event.getPersister(); + String[] propertyNames = persister.getPropertyNames(); + Type[] types = persister.getPropertyTypes(); + auditOperationRecord.onDelete(entity, id, state, propertyNames, types); + } + + @Override + public void onPostInsert(PostInsertEvent event) { + Object entity = event.getEntity(); + Object[] state = event.getState(); + Serializable id = event.getId(); + EntityPersister persister = event.getPersister(); + String[] propertyNames = persister.getPropertyNames(); + Type[] types = persister.getPropertyTypes(); + auditOperationRecord.onSaveRecord(entity, id, state, propertyNames, types); + + } + + @Override + public boolean requiresPostCommitHanding(EntityPersister persister) { + System.out.println("=================requiresPostCommitHanding===================="); + return false; + } + +} diff --git a/springboot-hibernate-listener-audit/src/main/java/com/vesus/listener/AuditOperationRecordAwareImpl.java b/springboot-hibernate-listener-audit/src/main/java/com/vesus/listener/AuditOperationRecordAwareImpl.java new file mode 100644 index 0000000..4e25abf --- /dev/null +++ b/springboot-hibernate-listener-audit/src/main/java/com/vesus/listener/AuditOperationRecordAwareImpl.java @@ -0,0 +1,85 @@ +package com.vesus.listener; + +import com.vesus.audit.AuditModifyFieldObject; +import com.vesus.audit.AuditOperationRecordAware; +import com.vesus.audit.AuditOperationType; +import com.vesus.domain.AuditRecordLog; +import com.vesus.service.AuditRecordLogService; +import org.springframework.beans.factory.annotation.Autowired; + +import java.io.Serializable; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.List; + +public class AuditOperationRecordAwareImpl implements AuditOperationRecordAware { + + @Autowired + private AuditRecordLogService auditRecordLogService; + + @Override + public void saveAuditOperationLog(String tableName, Serializable id, List auditModifyFieldObject, long timestamp, AuditOperationType operation) { + + + SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + String date = df.format(new Date(timestamp)); + System.out.println("更改的表名=========》" + tableName); + System.out.println("主键=========》" + id); + System.out.println("更改时间=========》" + date); + + + // todo 保存到数据库 + int i = 0; + for (AuditModifyFieldObject modifyFieldObject : auditModifyFieldObject) { + Object oldValue = modifyFieldObject.getOldValue(); + Object newValue = modifyFieldObject.getNewValue(); + if (modifyFieldObject.isAudit() && !(oldValue == null && newValue == null) && !("".equals(oldValue) && "".equals(newValue))) { + AuditRecordLog auditRecordLog = new AuditRecordLog(); + // 判断值不全是空或者前后值是否相等 + if (oldValue == null || newValue == null) { + auditRecordLog.setOldValue(oldValue + ""); + auditRecordLog.setNewValue(newValue + ""); + } else { + if (!oldValue.equals(newValue)) { + auditRecordLog.setOldValue(oldValue + ""); + auditRecordLog.setNewValue(newValue + ""); + } else { + continue; + } + } + auditRecordLog.setPropertyName(modifyFieldObject.getProperty() + ""); + auditRecordLog.setAlias(modifyFieldObject.getAlias()); + auditRecordLog.setEntityName(tableName); + auditRecordLog.setModifiedDate(date); + String username = "特斯特" + i++; //todo 获取用户名等信息 + auditRecordLog.setUserName(username); + String description = ""; + //如果是添加 + if (AuditOperationType.INSERT.equals(operation)) { + description = getOperationDescription(username, date, operation, newValue + ""); + + } + //如果是更新 + if (AuditOperationType.UPDATE.equals(operation)) { + description = getOperationDescription(username, date, operation, oldValue + "为" + newValue + ""); + } + //如果是删除 + if (AuditOperationType.DELETE.equals(operation)) { + description = getOperationDescription(username, date, operation, oldValue + ""); + + } + auditRecordLog.setDescription(description); + System.out.println("============描述========》" + description); + auditRecordLogService.save(auditRecordLog); + } + } + + } + + private String getOperationDescription(String userName, String datetime, AuditOperationType operation, String obj) { + return new StringBuffer().append(userName).append("在").append(datetime).append(operation.getValue()).append("了").append(obj).toString(); + + } + + +} diff --git a/springboot-hibernate-listener-audit/src/main/java/com/vesus/repository/AuditRecordLogRepository.java b/springboot-hibernate-listener-audit/src/main/java/com/vesus/repository/AuditRecordLogRepository.java new file mode 100644 index 0000000..f41c6d6 --- /dev/null +++ b/springboot-hibernate-listener-audit/src/main/java/com/vesus/repository/AuditRecordLogRepository.java @@ -0,0 +1,10 @@ +package com.vesus.repository; + +import com.vesus.domain.AuditRecordLog; +import org.springframework.data.repository.CrudRepository; +import org.springframework.stereotype.Repository; + +@Repository("operationRevisionLogRepository") +public interface AuditRecordLogRepository extends CrudRepository { + +} diff --git a/springboot-hibernate-listener-audit/src/main/java/com/vesus/repository/TUserRepository.java b/springboot-hibernate-listener-audit/src/main/java/com/vesus/repository/TUserRepository.java new file mode 100644 index 0000000..f0da389 --- /dev/null +++ b/springboot-hibernate-listener-audit/src/main/java/com/vesus/repository/TUserRepository.java @@ -0,0 +1,29 @@ +package com.vesus.repository; + +import com.vesus.domain.TUser; +import org.springframework.data.domain.Page; +import org.springframework.data.domain.Pageable; +import org.springframework.data.jpa.repository.Query; +import org.springframework.data.repository.CrudRepository; +import org.springframework.stereotype.Repository; + +import java.util.stream.Stream; + +/** + * @author wx11055@163.com + * @date 2018-06-27 23:19:28 + * Created by CodeGen . + */ +@Repository("tUserRepository") +public interface TUserRepository extends CrudRepository { + @Query("select l from TUser l") + Page findAllPaged(Pageable pageable); + + //Page findAllAndSortPaged(Pageable pageable, Sort sort); + + @Query("select l from TUser l") + Stream findAllAndStreamPaged(Pageable pageable); + + //Page queryFirst10ByName(String name, Pageable pageable); + +} diff --git a/springboot-hibernate-listener-audit/src/main/java/com/vesus/service/AuditRecordLogService.java b/springboot-hibernate-listener-audit/src/main/java/com/vesus/service/AuditRecordLogService.java new file mode 100644 index 0000000..7ad6b65 --- /dev/null +++ b/springboot-hibernate-listener-audit/src/main/java/com/vesus/service/AuditRecordLogService.java @@ -0,0 +1,19 @@ +package com.vesus.service; + + +import com.vesus.domain.AuditRecordLog; + +import java.util.List; + +public interface AuditRecordLogService { + + List findAll(); + + AuditRecordLog save(AuditRecordLog businessChangeLog); + + AuditRecordLog findOne(long id); + + void delete(long id); + + List findByName(String name); +} diff --git a/springboot-hibernate-listener-audit/src/main/java/com/vesus/service/TUserService.java b/springboot-hibernate-listener-audit/src/main/java/com/vesus/service/TUserService.java new file mode 100644 index 0000000..7a38876 --- /dev/null +++ b/springboot-hibernate-listener-audit/src/main/java/com/vesus/service/TUserService.java @@ -0,0 +1,40 @@ +package com.vesus.service; + + +import com.vesus.domain.TUser; +import org.springframework.data.domain.Page; + +import java.util.List; +import java.util.Optional; + +/** + * @author wx11055@163.com + * @date 2018-06-27 23:19:28 + * Created by wuxia . + */ +public interface TUserService { + + TUser save(TUser tUser); + + Iterable saveAll(Iterable list); + + TUser findOne(Integer id); + + Optional findById(Integer id); + + boolean existsById(Integer id); + + List findAll(); + + Long count(); + + void deleteById(Integer id); + + void delete(TUser tUser); + + void deleteAll(Iterable iter); + + Page findAllPaged(Integer pageNum, Integer pageSize); + + List findAllByEntityManager(String excuteSql, Class returnType); +} diff --git a/springboot-hibernate-listener-audit/src/main/java/com/vesus/service/imp/AuditRecordLogServiceImpl.java b/springboot-hibernate-listener-audit/src/main/java/com/vesus/service/imp/AuditRecordLogServiceImpl.java new file mode 100644 index 0000000..76c9070 --- /dev/null +++ b/springboot-hibernate-listener-audit/src/main/java/com/vesus/service/imp/AuditRecordLogServiceImpl.java @@ -0,0 +1,41 @@ +package com.vesus.service.imp; + +import com.vesus.domain.AuditRecordLog; +import com.vesus.repository.AuditRecordLogRepository; +import com.vesus.service.AuditRecordLogService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.List; + +@Service +public class AuditRecordLogServiceImpl implements AuditRecordLogService { + + @Autowired + private AuditRecordLogRepository auditRecordLogRepository; + + @Override + public List findAll() { + return null; + } + + @Override + public AuditRecordLog save(AuditRecordLog auditRecordLog) { + return auditRecordLogRepository.save(auditRecordLog); + } + + @Override + public AuditRecordLog findOne(long id) { + return null; + } + + @Override + public void delete(long id) { + + } + + @Override + public List findByName(String name) { + return null; + } +} diff --git a/springboot-hibernate-listener-audit/src/main/java/com/vesus/service/imp/TUserServiceImpl.java b/springboot-hibernate-listener-audit/src/main/java/com/vesus/service/imp/TUserServiceImpl.java new file mode 100644 index 0000000..5452ba9 --- /dev/null +++ b/springboot-hibernate-listener-audit/src/main/java/com/vesus/service/imp/TUserServiceImpl.java @@ -0,0 +1,97 @@ +package com.vesus.service.imp; + +import com.vesus.domain.TUser; +import com.vesus.repository.TUserRepository; +import com.vesus.service.TUserService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.data.domain.Page; +import org.springframework.data.domain.PageRequest; +import org.springframework.data.domain.Pageable; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Propagation; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; +import java.util.Optional; + +@Service("tUserService") +@Transactional(propagation = Propagation.REQUIRED) +public class TUserServiceImpl implements TUserService { + + @Autowired + private TUserRepository tUserRepository; + + + @Override + public TUser save(TUser tUser) { + return tUserRepository.save(tUser); + } + + @Override + public Iterable saveAll(Iterable list) { + // return tUserRepository.saveAll(list); + return null; + } + + + @Override + public TUser findOne(Integer id) { + // return tUserRepository.findById(id).get(); + + return tUserRepository.findOne(id); + } + + @Override + public Optional findById(Integer id) { + //return tUserRepository.findById(id); + return null; + } + + + @Override + public boolean existsById(Integer id) { + //return tUserRepository.existsById(id); + + return tUserRepository.exists(id); + } + + @Override + public List findAll() { + return (List) tUserRepository.findAll(); + } + + @Override + public Long count() { + return tUserRepository.count(); + } + + @Override + public void deleteById(Integer id) { + // tUserRepository.deleteById(id); + tUserRepository.delete(id); + } + + @Override + public void delete(TUser tUser) { + tUserRepository.delete(tUser); + } + + + @Override + public void deleteAll(Iterable iter) { + // tUserRepository.deleteAll(iter); + } + + @Override + public Page findAllPaged(Integer pageNum, Integer pageSize) { + Pageable pageable = new PageRequest(pageNum, pageSize); + return tUserRepository.findAllPaged(pageable); + } + + public List findAllByEntityManager(String excuteSql, Class returnType) { + //Query query = em.createNativeQuery(excuteSql, returnType); + //List list = query.getResultList(); + return null; + } + +} diff --git a/springboot-hibernate-listener-audit/src/main/resources/application.properties b/springboot-hibernate-listener-audit/src/main/resources/application.properties new file mode 100644 index 0000000..630487f --- /dev/null +++ b/springboot-hibernate-listener-audit/src/main/resources/application.properties @@ -0,0 +1,11 @@ +spring.datasource.url=jdbc:mysql://127.0.0.1:3306/test?characterEncoding=utf8 +spring.datasource.driver-class-name=com.mysql.jdbc.Driver +spring.datasource.username=root +spring.datasource.password=root +spring.jpa.show-sql=true +spring.jpa.hibernate.naming.strategy=org.hibernate.cfg.ImprovedNamingStrategy +spring.jpa.database=mysql +server.port=8080 +spring.jpa.hibernate.ddl-auto=update +hibernate.hbm2ddl.auto=true + -- Gitee From 00eaa9cf1a2933930b2d492910f424bf1fb21fbc Mon Sep 17 00:00:00 2001 From: wuxia Date: Sat, 30 Jun 2018 13:59:09 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E6=B7=BB=E5=8A=A0hibernate=E6=8B=A6?= =?UTF-8?q?=E6=88=AA=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- springbott-hibernate-interceptoer/pom.xml | 73 ++++++++ ...otHibernateAditInterceptorApplication.java | 64 +++++++ .../com/vesus/audit/AuditEntityAlias.java | 12 ++ .../java/com/vesus/audit/AuditFieldAlias.java | 12 ++ .../vesus/audit/AuditModifyFieldObject.java | 61 ++++++ .../com/vesus/audit/AuditOperationRecord.java | 174 ++++++++++++++++++ .../audit/AuditOperationRecordAware.java | 8 + .../audit/AuditOperationRecordAwareImpl.java | 82 +++++++++ .../com/vesus/audit/AuditOperationType.java | 74 ++++++++ .../java/com/vesus/audit/AuditPrimaryID.java | 11 ++ .../com/vesus/controller/TUserController.java | 64 +++++++ .../java/com/vesus/domain/AuditRecordLog.java | 121 ++++++++++++ .../vesus/domain/CustomerRevisionEntity.java | 52 ++++++ .../src/main/java/com/vesus/domain/TUser.java | 138 ++++++++++++++ .../vesus/listener/CustomAuditListener.java | 18 ++ .../com/vesus/listener/CustomAuditor.java | 27 +++ .../com/vesus/listener/CustomInterceptor.java | 42 +++++ .../listener/CustomRevisionListener.java | 16 ++ .../repository/AuditRecordLogRepository.java | 11 ++ .../com/vesus/repository/TUserRepository.java | 30 +++ .../vesus/service/AuditRecordLogService.java | 19 ++ .../java/com/vesus/service/TUserService.java | 40 ++++ .../imp/AuditRecordLogServiceImpl.java | 42 +++++ .../vesus/service/imp/TUserServiceImpl.java | 101 ++++++++++ .../src/main/resources/application.properties | 34 ++++ 25 files changed, 1326 insertions(+) create mode 100644 springbott-hibernate-interceptoer/pom.xml create mode 100644 springbott-hibernate-interceptoer/src/main/java/com/vesus/SpringBootHibernateAditInterceptorApplication.java create mode 100644 springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditEntityAlias.java create mode 100644 springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditFieldAlias.java create mode 100644 springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditModifyFieldObject.java create mode 100644 springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditOperationRecord.java create mode 100644 springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditOperationRecordAware.java create mode 100644 springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditOperationRecordAwareImpl.java create mode 100644 springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditOperationType.java create mode 100644 springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditPrimaryID.java create mode 100644 springbott-hibernate-interceptoer/src/main/java/com/vesus/controller/TUserController.java create mode 100644 springbott-hibernate-interceptoer/src/main/java/com/vesus/domain/AuditRecordLog.java create mode 100644 springbott-hibernate-interceptoer/src/main/java/com/vesus/domain/CustomerRevisionEntity.java create mode 100644 springbott-hibernate-interceptoer/src/main/java/com/vesus/domain/TUser.java create mode 100644 springbott-hibernate-interceptoer/src/main/java/com/vesus/listener/CustomAuditListener.java create mode 100644 springbott-hibernate-interceptoer/src/main/java/com/vesus/listener/CustomAuditor.java create mode 100644 springbott-hibernate-interceptoer/src/main/java/com/vesus/listener/CustomInterceptor.java create mode 100644 springbott-hibernate-interceptoer/src/main/java/com/vesus/listener/CustomRevisionListener.java create mode 100644 springbott-hibernate-interceptoer/src/main/java/com/vesus/repository/AuditRecordLogRepository.java create mode 100644 springbott-hibernate-interceptoer/src/main/java/com/vesus/repository/TUserRepository.java create mode 100644 springbott-hibernate-interceptoer/src/main/java/com/vesus/service/AuditRecordLogService.java create mode 100644 springbott-hibernate-interceptoer/src/main/java/com/vesus/service/TUserService.java create mode 100644 springbott-hibernate-interceptoer/src/main/java/com/vesus/service/imp/AuditRecordLogServiceImpl.java create mode 100644 springbott-hibernate-interceptoer/src/main/java/com/vesus/service/imp/TUserServiceImpl.java create mode 100644 springbott-hibernate-interceptoer/src/main/resources/application.properties diff --git a/springbott-hibernate-interceptoer/pom.xml b/springbott-hibernate-interceptoer/pom.xml new file mode 100644 index 0000000..8b61188 --- /dev/null +++ b/springbott-hibernate-interceptoer/pom.xml @@ -0,0 +1,73 @@ + + + + spring-boot-demo + com.vesus + 0.0.1-SNAPSHOT + + 4.0.0 + + springbott-hibernate-interceptoer + + + + + org.springframework.boot + spring-boot-starter-web + + + + org.springframework.boot + spring-boot-starter-data-jpa + + + + mysql + mysql-connector-java + + + + com.alibaba + druid + 1.0.29 + + + org.springframework.boot + spring-boot-starter-test + + + org.springframework.boot + spring-boot-devtools + + + org.springframework.boot + spring-boot-actuator + + + org.hibernate + hibernate-envers + 5.0.12.Final + + + + + + + + org.springframework.boot + spring-boot-maven-plugin + 1.4.2.RELEASE + + + true + + + + org.springframework.boot + spring-boot-maven-plugin + + + + \ No newline at end of file diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/SpringBootHibernateAditInterceptorApplication.java b/springbott-hibernate-interceptoer/src/main/java/com/vesus/SpringBootHibernateAditInterceptorApplication.java new file mode 100644 index 0000000..05bbf3e --- /dev/null +++ b/springbott-hibernate-interceptoer/src/main/java/com/vesus/SpringBootHibernateAditInterceptorApplication.java @@ -0,0 +1,64 @@ +package com.vesus; + +import com.vesus.audit.AuditOperationRecord; +import com.vesus.audit.AuditOperationRecordAware; +import com.vesus.audit.AuditOperationRecordAwareImpl; +import com.vesus.listener.CustomAuditor; +import com.vesus.listener.CustomInterceptor; +import org.hibernate.SessionFactory; +import org.hibernate.jpa.HibernateEntityManagerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.context.annotation.Bean; +import org.springframework.data.domain.AuditorAware; +import org.springframework.data.jpa.repository.config.EnableJpaAuditing; +import org.springframework.data.jpa.repository.config.EnableJpaRepositories; +import org.springframework.transaction.annotation.EnableTransactionManagement; + +import javax.annotation.PostConstruct; +import javax.annotation.Resource; + +@SpringBootApplication +@EnableTransactionManagement +@EnableJpaRepositories +@EnableJpaAuditing +public class SpringBootHibernateAditInterceptorApplication { + + public static void main(String[] args) { + SpringApplication.run(SpringBootHibernateAditInterceptorApplication.class, args); + } + + @Bean + public SessionFactory sessionFactory(HibernateEntityManagerFactory hemf) { + return hemf.getSessionFactory(); + } + + @Bean + AuditOperationRecordAware auditOperationRecordAware() { + return new AuditOperationRecordAwareImpl(); + } + + + @Bean + AuditorAware auditorProvider() { + return new CustomAuditor(); + } + + + @Resource + private SessionFactory sessionFactory; + //@Autowired + //AuditOperationRecord auditOperationRecord; + + @Autowired + CustomInterceptor interceptor; + + @PostConstruct + public void registerInterceptor() { + //CustomInterceptor interceptor = new CustomInterceptor(); + //interceptor.setAuditOperationRecord(auditOperationRecord); + sessionFactory.withOptions().interceptor(interceptor); + } + +} diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditEntityAlias.java b/springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditEntityAlias.java new file mode 100644 index 0000000..e1b46ff --- /dev/null +++ b/springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditEntityAlias.java @@ -0,0 +1,12 @@ +package com.vesus.audit; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.TYPE) +public @interface AuditEntityAlias { + String value(); +} diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditFieldAlias.java b/springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditFieldAlias.java new file mode 100644 index 0000000..dcb8cbe --- /dev/null +++ b/springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditFieldAlias.java @@ -0,0 +1,12 @@ +package com.vesus.audit; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.FIELD) +public @interface AuditFieldAlias { + String value() default ""; +} diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditModifyFieldObject.java b/springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditModifyFieldObject.java new file mode 100644 index 0000000..e2940f8 --- /dev/null +++ b/springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditModifyFieldObject.java @@ -0,0 +1,61 @@ +package com.vesus.audit; + +public class AuditModifyFieldObject { + + private Object oldValue; + private Object newValue; + private Object property; + private Object type; + private String alias; + private boolean isAudit; + + + public String getAlias() { + return alias; + } + + public void setAlias(String alias) { + this.alias = alias; + } + + public Object getOldValue() { + return oldValue; + } + + + public void setOldValue(Object oldValue) { + this.oldValue = oldValue; + } + + public Object getNewValue() { + return newValue; + } + + public void setNewValue(Object newValue) { + this.newValue = newValue; + } + + public Object getProperty() { + return property; + } + + public void setProperty(Object property) { + this.property = property; + } + + public Object getType() { + return type; + } + + public void setType(Object type) { + this.type = type; + } + + public boolean isAudit() { + return isAudit; + } + + public void setAudit(boolean audit) { + isAudit = audit; + } +} diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditOperationRecord.java b/springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditOperationRecord.java new file mode 100644 index 0000000..f646d79 --- /dev/null +++ b/springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditOperationRecord.java @@ -0,0 +1,174 @@ +package com.vesus.audit; + +import org.hibernate.type.Type; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; + +import java.io.Serializable; +import java.lang.reflect.Field; +import java.time.LocalDateTime; +import java.time.ZoneId; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +@Component +public class AuditOperationRecord { + + private AuditOperationRecordAware auditOperationRecordAware; + + @Autowired(required = false) + public void setAuditOperationRecordAware(AuditOperationRecordAware auditOperationRecordAware) { + this.auditOperationRecordAware = auditOperationRecordAware; + } + + public boolean onSaveRecord(Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types) { + System.out.println("=========添加============》"); + boolean result = processor(entity, id, state, null, propertyNames, types); + return result; + } + + + public boolean onUpdateRecord(Object entity, Serializable id, Object[] currentState, Object[] previousState, String[] propertyNames, Type[] types) { + System.out.println("=========更新============》"); + boolean result = processor(entity, id, currentState, previousState, propertyNames, types); + return result; + } + + + public void onDelete(Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types) { + System.out.println("=========删除============》"); + processor(entity, id, null, state, propertyNames, types); + } + + /** + * 处理相同变更实体信息的公共类 + * + * @param entity + * 操作实体对象 + * @param id + * 操作实体主键编号 + * @param currentState + * 当前更改字段对象数组 + * @param previousState + * 变更前字段信息对象数组 + * @param propertyNames + * 英文属性名数组 + * @param types + * 属性类型数组hibernate封装 + * @return + */ + private boolean processor(Object entity, Serializable id, Object[] currentState, Object[] previousState, String[] propertyNames, Type[] types) { + Class entityClass = entity.getClass(); + if (auditOperationRecordAware == null) { + return true; + } + if (!entityClass.isAnnotationPresent(AuditEntityAlias.class)) { + return true; + } + AuditEntityAlias entityAlias = entityClass.getAnnotation(AuditEntityAlias.class); + String tableName = entityAlias.value(); + + //设置别名和审计字段长度 + boolean[] isAudits = new boolean[propertyNames.length]; + String[] alias = new String[propertyNames.length]; + try { + for (int i = 0; i < propertyNames.length; i++) { + //Field field = entityClass.getField(propertyNames[i]); + Field field = entityClass.getDeclaredField(propertyNames[i]); + field.setAccessible(true); + if (field.isAnnotationPresent(AuditFieldAlias.class)) { + AuditFieldAlias auditFieldAlias = field.getAnnotation(AuditFieldAlias.class); + isAudits[i] = true; + alias[i] = auditFieldAlias.value(); + } else { + isAudits[i] = false; + alias[i] = ""; + } + } + } catch (NoSuchFieldException e) { + System.err.println(e.getMessage()); + } + + //生成改变字段信息列表 + List auditModifyFieldObject = getAuditModifyFieldObject(currentState, previousState, propertyNames, types, alias, isAudits); + long timestamp = Date.from(LocalDateTime.now().atZone(ZoneId.systemDefault()).toInstant()).getTime(); + AuditOperationType operationType = AuditOperationType.UPDATE; + //根据变更对象是否为空判断操作类型 + if (previousState != null && currentState != null) { + operationType = AuditOperationType.UPDATE; + } + if (previousState == null && currentState != null) { + operationType = AuditOperationType.INSERT; + } + if (previousState != null && currentState == null) { + operationType = AuditOperationType.DELETE; + } + if (auditOperationRecordAware != null) { + auditOperationRecordAware.saveAuditOperationLog(tableName, id, auditModifyFieldObject, timestamp, operationType); + } + return true; + + } + + /** + * 获取自定义封装的字段修改对象类,用来保存更改前后的字段变化信息 + * + * @param currentState + * 操作后对象,也是当前对象 + * @param previousState + * 变更前对象 + * @param propertyNames + * 属性英文变量名称 + * @param types + * 属性类型,这里是hibernate帮忙生成的一个类型 + * @param alias + * 中文别名,这个属性需要结合 AuditFieldAlias 注解使用才能获取别名 + * @param isAudits + * 是否审计,如果为true表示此字段需要保存更改变更,false相反 + * @return + */ + private List getAuditModifyFieldObject(Object[] currentState, Object[] previousState, String[] propertyNames, Type[] types, String[] alias, boolean[] isAudits) { + List list = new ArrayList<>(10); + int fieldCount = 0; + //获取字段总个数 + if (currentState != null && currentState.length > 0 && fieldCount == 0) { + fieldCount = currentState.length; + } + if (previousState != null && previousState.length > 0 && fieldCount == 0) { + fieldCount = previousState.length; + } + for (int i = 0; i < fieldCount; i++) { + AuditModifyFieldObject auditModifyObject = new AuditModifyFieldObject(); + //设置更改前的值 + if (previousState != null && previousState[i] != null) { + auditModifyObject.setOldValue(previousState[i]); + } + // 设置更改后的当前值 + if (currentState != null && currentState[i] != null) { + auditModifyObject.setNewValue(currentState[i]); + } + //设置属性名 + if (propertyNames != null && propertyNames[i] != null) { + auditModifyObject.setProperty(propertyNames[i]); + } + //设置类型 + if (types != null && types[i] != null) { + auditModifyObject.setType(types[i]); + } + // 设置别名 + if (alias != null && alias[i] != null) { + auditModifyObject.setAlias(alias[i]); + } + // 是否审计 + if (isAudits != null && isAudits[i]) { + auditModifyObject.setAudit(true); + } else { + auditModifyObject.setAudit(false); + } + list.add(auditModifyObject); + } + return list; + } + +} diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditOperationRecordAware.java b/springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditOperationRecordAware.java new file mode 100644 index 0000000..676fff1 --- /dev/null +++ b/springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditOperationRecordAware.java @@ -0,0 +1,8 @@ +package com.vesus.audit; + +import java.io.Serializable; +import java.util.List; + +public interface AuditOperationRecordAware { + void saveAuditOperationLog(String tableName, Serializable id, List auditModifyFieldObject, long timestamp, AuditOperationType operationType); +} diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditOperationRecordAwareImpl.java b/springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditOperationRecordAwareImpl.java new file mode 100644 index 0000000..92723fc --- /dev/null +++ b/springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditOperationRecordAwareImpl.java @@ -0,0 +1,82 @@ +package com.vesus.audit; + +import com.vesus.domain.AuditRecordLog; +import com.vesus.service.AuditRecordLogService; +import org.springframework.beans.factory.annotation.Autowired; + +import java.io.Serializable; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.List; + +public class AuditOperationRecordAwareImpl implements AuditOperationRecordAware { + + @Autowired + private AuditRecordLogService auditRecordLogService; + + @Override + public void saveAuditOperationLog(String tableName, Serializable id, List auditModifyFieldObject, long timestamp, AuditOperationType operation) { + + + SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + String date = df.format(new Date(timestamp)); + System.out.println("更改的表名=========》" + tableName); + System.out.println("主键=========》" + id); + System.out.println("更改时间=========》" + date); + + + // todo 保存到数据库 + int i = 0; + for (AuditModifyFieldObject modifyFieldObject : auditModifyFieldObject) { + Object oldValue = modifyFieldObject.getOldValue(); + Object newValue = modifyFieldObject.getNewValue(); + if (modifyFieldObject.isAudit() && !(oldValue == null && newValue == null) && !("".equals(oldValue) && "".equals(newValue))) { + AuditRecordLog auditRecordLog = new AuditRecordLog(); + // 判断值不全是空或者前后值是否相等 + if (oldValue == null || newValue == null) { + auditRecordLog.setOldValue(oldValue + ""); + auditRecordLog.setNewValue(newValue + ""); + } else { + if (!oldValue.equals(newValue)) { + auditRecordLog.setOldValue(oldValue + ""); + auditRecordLog.setNewValue(newValue + ""); + } else { + continue; + } + } + auditRecordLog.setPropertyName(modifyFieldObject.getProperty() + ""); + auditRecordLog.setAlias(modifyFieldObject.getAlias()); + auditRecordLog.setEntityName(tableName); + auditRecordLog.setModifiedDate(date); + String username = "特斯特" + i++; //todo 获取用户名等信息 + auditRecordLog.setUserName(username); + String description = ""; + //如果是添加 + if (AuditOperationType.INSERT.equals(operation)) { + description = getOperationDescription(username, date, operation, newValue + ""); + + } + //如果是更新 + if (AuditOperationType.UPDATE.equals(operation)) { + description = getOperationDescription(username, date, operation, oldValue + "为" + newValue + ""); + } + //如果是删除 + if (AuditOperationType.DELETE.equals(operation)) { + description = getOperationDescription(username, date, operation, oldValue + ""); + + } + auditRecordLog.setDescription(description); + System.out.println("============描述========》" + description); + auditRecordLogService.save(auditRecordLog); + } + } + + } + + private String getOperationDescription(String userName, String datetime, AuditOperationType operation, String obj) { + return new StringBuffer().append(userName).append("在").append(datetime).append(operation.getValue()).append("了").append(obj).toString(); + + } + + +} diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditOperationType.java b/springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditOperationType.java new file mode 100644 index 0000000..cdbe7ea --- /dev/null +++ b/springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditOperationType.java @@ -0,0 +1,74 @@ +package com.vesus.audit; + +/** + * 审计操作对象类别枚举 + */ +public enum AuditOperationType { + INSERT((byte) 0) { + @Override + public String getValue() { + return "新增"; + } + }, UPDATE((byte) 1) { + @Override + public String getValue() { + return "修改"; + } + }, DELETE((byte) 2) { + @Override + public String getValue() { + return "删除"; + } + }; + + private String value; + private Byte representation; + + AuditOperationType(byte representation) { + this.representation = representation; + } + + AuditOperationType() { + value = toString(); + } + + public static AuditOperationType parse(final String value) { + AuditOperationType operation = null; + for (final AuditOperationType op : AuditOperationType.values()) { + if (op.getValue().equals(value)) { + operation = op; + break; + } + } + return operation; + } + + public static AuditOperationType parseNumber(final Object representation) { + System.out.println(representation.getClass().getName()); + if (representation == null || !(representation instanceof Byte)) { + return null; + } + switch ((Byte) representation) { + case 0: { + return INSERT; + } + case 1: { + return UPDATE; + } + case 2: { + return DELETE; + } + default: { + throw new IllegalArgumentException("Unknown representation: " + representation); + } + } + } + + public String getValue() { + return value; + } + + public Byte getRepresentation() { + return representation; + } +} \ No newline at end of file diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditPrimaryID.java b/springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditPrimaryID.java new file mode 100644 index 0000000..2abd7d6 --- /dev/null +++ b/springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditPrimaryID.java @@ -0,0 +1,11 @@ +package com.vesus.audit; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.FIELD) +public @interface AuditPrimaryID { +} diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/controller/TUserController.java b/springbott-hibernate-interceptoer/src/main/java/com/vesus/controller/TUserController.java new file mode 100644 index 0000000..184ad61 --- /dev/null +++ b/springbott-hibernate-interceptoer/src/main/java/com/vesus/controller/TUserController.java @@ -0,0 +1,64 @@ +package com.vesus.controller; + + +import com.vesus.domain.TUser; +import com.vesus.service.TUserService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import java.util.List; +import java.util.Optional; + +@RestController +@RequestMapping("/tUserController") +public class TUserController { + + @Autowired + private TUserService tUserService; + + @RequestMapping("/save") + public TUser save(TUser tUser) { + return tUserService.save(tUser); + } + + @RequestMapping("/findOneById") + public TUser findOneById(Integer id) { + return tUserService.findOne(id); + } + + @RequestMapping("/findOptionalOneById") + public Optional findOptionOneById(Integer id) { + return tUserService.findById(id); + } + + @RequestMapping("/existsById") + public boolean existsById(Integer id) { + return tUserService.existsById(id); + } + + @RequestMapping("/findAll") + public List findAll() { + return tUserService.findAll(); + } + + @RequestMapping("/findAllByEntityManager") + public List findAllByEntityManager() { + return tUserService.findAllByEntityManager("select * from t_user", TUser.class); + } + + @RequestMapping("/count") + public Long count() { + return tUserService.count(); + } + + @RequestMapping("/deleteById") + public void deleteById(Integer id) { + tUserService.deleteById(id); + } + + @RequestMapping("/deleteByEntity") + public void delete(TUser tUser) { + tUserService.delete(tUser); + } +} diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/domain/AuditRecordLog.java b/springbott-hibernate-interceptoer/src/main/java/com/vesus/domain/AuditRecordLog.java new file mode 100644 index 0000000..5459ebb --- /dev/null +++ b/springbott-hibernate-interceptoer/src/main/java/com/vesus/domain/AuditRecordLog.java @@ -0,0 +1,121 @@ +package com.vesus.domain; + + +import javax.persistence.*; +@Entity +@Table(name = "t_audit_record_log") +public class AuditRecordLog { + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + @Column(name = "id") + private int id; + + @Column(name = "t_entity_name") + private String entityName; + + @Column(name = "t_property_name") + private String propertyName; + + @Column(name = "t_alias") + private String alias; + + @Column(name = "t_old_value") + private String oldValue; + + @Column(name = "t_new_value") + private String newValue; + + @Column(name = "t_user_id") + private int userId; + + @Column(name = "t_user_name") + private String userName; + + @Column(name = "t_modified_date") + private String modifiedDate; + + @Column(name = "t_description") + private String description; + + public int getId() { + return id; + } + + public void setId(int id) { + this.id = id; + } + + public String getPropertyName() { + return propertyName; + } + + public void setPropertyName(String propertyName) { + this.propertyName = propertyName; + } + + public String getEntityName() { + return entityName; + } + + public void setEntityName(String entityName) { + this.entityName = entityName; + } + + + public String getAlias() { + return alias; + } + + public void setAlias(String alias) { + this.alias = alias; + } + + public String getOldValue() { + return oldValue; + } + + public void setOldValue(String oldValue) { + this.oldValue = oldValue; + } + + public String getNewValue() { + return newValue; + } + + public void setNewValue(String newValue) { + this.newValue = newValue; + } + + public int getUserId() { + return userId; + } + + public void setUserId(int userId) { + this.userId = userId; + } + + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + public String getModifiedDate() { + return modifiedDate; + } + + public void setModifiedDate(String modifiedDate) { + this.modifiedDate = modifiedDate; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } +} diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/domain/CustomerRevisionEntity.java b/springbott-hibernate-interceptoer/src/main/java/com/vesus/domain/CustomerRevisionEntity.java new file mode 100644 index 0000000..e38af58 --- /dev/null +++ b/springbott-hibernate-interceptoer/src/main/java/com/vesus/domain/CustomerRevisionEntity.java @@ -0,0 +1,52 @@ +package com.vesus.domain; + + +import com.vesus.listener.CustomRevisionListener; +import org.hibernate.envers.RevisionEntity; +import org.hibernate.envers.RevisionNumber; +import org.hibernate.envers.RevisionTimestamp; + +import javax.persistence.*; + + +@Entity +@Table(name = "t_revisions_info") +@RevisionEntity(CustomRevisionListener.class) +public class CustomerRevisionEntity { + @Id + @GeneratedValue + @RevisionNumber + @Column(name = "id") + private int id; + + @RevisionTimestamp + @Column(name = "timestamp") + private long timestamp; + + @Column(name = "user_name") + private String userName; + + public int getId() { + return id; + } + + public void setId(int id) { + this.id = id; + } + + public long getTimestamp() { + return timestamp; + } + + public void setTimestamp(long timestamp) { + this.timestamp = timestamp; + } + + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } +} diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/domain/TUser.java b/springbott-hibernate-interceptoer/src/main/java/com/vesus/domain/TUser.java new file mode 100644 index 0000000..dbf1187 --- /dev/null +++ b/springbott-hibernate-interceptoer/src/main/java/com/vesus/domain/TUser.java @@ -0,0 +1,138 @@ +package com.vesus.domain; + +import com.vesus.audit.AuditEntityAlias; +import com.vesus.audit.AuditFieldAlias; +import com.vesus.audit.AuditPrimaryID; +import com.vesus.listener.CustomAuditListener; +import org.hibernate.envers.Audited; +import org.springframework.data.annotation.CreatedBy; +import org.springframework.data.annotation.LastModifiedBy; +import org.springframework.data.annotation.LastModifiedDate; + +import javax.persistence.*; +import java.io.Serializable; + + +/** + * @author wx11055@163.com + * @date 2018-06-27 23:19:28 + * Created by wuxia . + */ +@Entity +@Table(name = "t_user") +@Audited +@EntityListeners(CustomAuditListener.class) +@AuditEntityAlias("用户信息表") +//@AuditTable(value = "_revisions_info") +public class TUser implements Serializable { + + /** + * 编号 + */ + @Id + @GeneratedValue + @Column(name = "t_id") + @AuditPrimaryID + private Integer id; + + @Column(name = "t_address") + @AuditFieldAlias("联系地址") + private String tAddress; + + @Column(name = "t_age") + @AuditFieldAlias("年龄") + private Integer tAge; + + @Column(name = "t_name") + @AuditFieldAlias("姓名") + private String tName; + + @Column(name = "t_pwd") + @AuditFieldAlias("密码") + private String tPwd; + + @Column(name = "t_creator") + @CreatedBy + @LastModifiedBy + private String tCreator; + + + @Column(name = "t_modified_date") + @LastModifiedDate + private String tModifiedDate; + + public String gettCreator() { + return tCreator; + } + + public void settCreator(String tCreator) { + this.tCreator = tCreator; + } + + public String gettModifiedDate() { + return tModifiedDate; + } + + public void settModifiedDate(String tModifiedDate) { + this.tModifiedDate = tModifiedDate; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + + public String gettAddress() { + return tAddress; + } + + public void settAddress(String tAddress) { + this.tAddress = tAddress; + } + + public Integer gettAge() { + return tAge; + } + + public void settAge(Integer tAge) { + this.tAge = tAge; + } + + public String gettName() { + return tName; + } + + public void settName(String tName) { + this.tName = tName; + } + + public String gettPwd() { + return tPwd; + } + + public void settPwd(String tPwd) { + this.tPwd = tPwd; + } + + + //@PrePersist + //public void onPrePersist() { + // + // System.out.println("============>>>>>>>持久化保存之前"); + //} + // + //@PreUpdate + //public void onPreUpdate() { + // System.out.println("=============>>>>>>>更新之前"); + //} + // + //@PreRemove + //public void onPreRemove() { + // System.out.println("=================>>>>>删除前"); + //} + +} diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/listener/CustomAuditListener.java b/springbott-hibernate-interceptoer/src/main/java/com/vesus/listener/CustomAuditListener.java new file mode 100644 index 0000000..2603843 --- /dev/null +++ b/springbott-hibernate-interceptoer/src/main/java/com/vesus/listener/CustomAuditListener.java @@ -0,0 +1,18 @@ +package com.vesus.listener; + + +import javax.persistence.PrePersist; +import javax.persistence.PreRemove; +import javax.persistence.PreUpdate; + +public class CustomAuditListener { + + + @PrePersist + @PreUpdate + @PreRemove + private void beforeAnyOperation(Object object) { + } + + +} diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/listener/CustomAuditor.java b/springbott-hibernate-interceptoer/src/main/java/com/vesus/listener/CustomAuditor.java new file mode 100644 index 0000000..462b5fc --- /dev/null +++ b/springbott-hibernate-interceptoer/src/main/java/com/vesus/listener/CustomAuditor.java @@ -0,0 +1,27 @@ +package com.vesus.listener; + + +import org.springframework.data.domain.AuditorAware; + +public class CustomAuditor implements AuditorAware { + private String username; + private String userId; + + @Override + public String getCurrentAuditor() { + return this.username; + } + + public CustomAuditor() { + super(); + } + + public CustomAuditor(String username) { + this.username = username; + } + + public CustomAuditor(String username, String userId) { + this.username = username; + this.userId = userId; + } +} diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/listener/CustomInterceptor.java b/springbott-hibernate-interceptoer/src/main/java/com/vesus/listener/CustomInterceptor.java new file mode 100644 index 0000000..70caa6b --- /dev/null +++ b/springbott-hibernate-interceptoer/src/main/java/com/vesus/listener/CustomInterceptor.java @@ -0,0 +1,42 @@ +package com.vesus.listener; + + +import com.vesus.audit.AuditOperationRecord; +import org.hibernate.EmptyInterceptor; +import org.hibernate.type.Type; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; + +import java.io.Serializable; +@Component +public class CustomInterceptor extends EmptyInterceptor { + + @Autowired(required = false) + AuditOperationRecord auditOperationRecord; + + + public void setAuditOperationRecord(AuditOperationRecord auditOperationRecord) { + this.auditOperationRecord = auditOperationRecord; + } + + @Override + public boolean onSave(Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types) { + auditOperationRecord.onSaveRecord(entity, id, state, propertyNames, types); + return super.onSave(entity, id, state, propertyNames, types); + } + + @Override + public boolean onFlushDirty(Object entity, Serializable id, Object[] currentState, Object[] previousState, String[] propertyNames, Type[] types) { + auditOperationRecord.onUpdateRecord(entity, id, currentState, previousState, propertyNames, types); + + return super.onFlushDirty(entity, id, currentState, previousState, propertyNames, types); + + } + + @Override + public void onDelete(Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types) { + auditOperationRecord.onDelete(entity, id, state, propertyNames, types); + super.onDelete(entity, id, state, propertyNames, types); + + } +} \ No newline at end of file diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/listener/CustomRevisionListener.java b/springbott-hibernate-interceptoer/src/main/java/com/vesus/listener/CustomRevisionListener.java new file mode 100644 index 0000000..b1295aa --- /dev/null +++ b/springbott-hibernate-interceptoer/src/main/java/com/vesus/listener/CustomRevisionListener.java @@ -0,0 +1,16 @@ +package com.vesus.listener; + + +import com.vesus.domain.CustomerRevisionEntity; +import org.hibernate.envers.RevisionListener; + +/** + * 修订监听器 + */ +public class CustomRevisionListener implements RevisionListener { + + public void newRevision(Object revisionEntity) { + CustomerRevisionEntity exampleRevEntity = (CustomerRevisionEntity) revisionEntity; + exampleRevEntity.setUserName("matosiki"); + } +} \ No newline at end of file diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/repository/AuditRecordLogRepository.java b/springbott-hibernate-interceptoer/src/main/java/com/vesus/repository/AuditRecordLogRepository.java new file mode 100644 index 0000000..6557320 --- /dev/null +++ b/springbott-hibernate-interceptoer/src/main/java/com/vesus/repository/AuditRecordLogRepository.java @@ -0,0 +1,11 @@ +package com.vesus.repository; + + +import com.vesus.domain.AuditRecordLog; +import org.springframework.data.repository.CrudRepository; +import org.springframework.stereotype.Repository; + +@Repository("operationRevisionLogRepository") +public interface AuditRecordLogRepository extends CrudRepository { + +} diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/repository/TUserRepository.java b/springbott-hibernate-interceptoer/src/main/java/com/vesus/repository/TUserRepository.java new file mode 100644 index 0000000..af300c6 --- /dev/null +++ b/springbott-hibernate-interceptoer/src/main/java/com/vesus/repository/TUserRepository.java @@ -0,0 +1,30 @@ +package com.vesus.repository; + + +import com.vesus.domain.TUser; +import org.springframework.data.domain.Page; +import org.springframework.data.domain.Pageable; +import org.springframework.data.jpa.repository.Query; +import org.springframework.data.repository.CrudRepository; +import org.springframework.stereotype.Repository; + +import java.util.stream.Stream; + +/** + * @author wx11055@163.com + * @date 2018-06-27 23:19:28 + * Created by CodeGen . + */ +@Repository("tUserRepository") +public interface TUserRepository extends CrudRepository { + @Query("select l from TUser l") + Page findAllPaged(Pageable pageable); + + //Page findAllAndSortPaged(Pageable pageable, Sort sort); + + @Query("select l from TUser l") + Stream findAllAndStreamPaged(Pageable pageable); + + //Page queryFirst10ByName(String name, Pageable pageable); + +} diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/service/AuditRecordLogService.java b/springbott-hibernate-interceptoer/src/main/java/com/vesus/service/AuditRecordLogService.java new file mode 100644 index 0000000..7ad6b65 --- /dev/null +++ b/springbott-hibernate-interceptoer/src/main/java/com/vesus/service/AuditRecordLogService.java @@ -0,0 +1,19 @@ +package com.vesus.service; + + +import com.vesus.domain.AuditRecordLog; + +import java.util.List; + +public interface AuditRecordLogService { + + List findAll(); + + AuditRecordLog save(AuditRecordLog businessChangeLog); + + AuditRecordLog findOne(long id); + + void delete(long id); + + List findByName(String name); +} diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/service/TUserService.java b/springbott-hibernate-interceptoer/src/main/java/com/vesus/service/TUserService.java new file mode 100644 index 0000000..7a38876 --- /dev/null +++ b/springbott-hibernate-interceptoer/src/main/java/com/vesus/service/TUserService.java @@ -0,0 +1,40 @@ +package com.vesus.service; + + +import com.vesus.domain.TUser; +import org.springframework.data.domain.Page; + +import java.util.List; +import java.util.Optional; + +/** + * @author wx11055@163.com + * @date 2018-06-27 23:19:28 + * Created by wuxia . + */ +public interface TUserService { + + TUser save(TUser tUser); + + Iterable saveAll(Iterable list); + + TUser findOne(Integer id); + + Optional findById(Integer id); + + boolean existsById(Integer id); + + List findAll(); + + Long count(); + + void deleteById(Integer id); + + void delete(TUser tUser); + + void deleteAll(Iterable iter); + + Page findAllPaged(Integer pageNum, Integer pageSize); + + List findAllByEntityManager(String excuteSql, Class returnType); +} diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/service/imp/AuditRecordLogServiceImpl.java b/springbott-hibernate-interceptoer/src/main/java/com/vesus/service/imp/AuditRecordLogServiceImpl.java new file mode 100644 index 0000000..66bdf76 --- /dev/null +++ b/springbott-hibernate-interceptoer/src/main/java/com/vesus/service/imp/AuditRecordLogServiceImpl.java @@ -0,0 +1,42 @@ +package com.vesus.service.imp; + + +import com.vesus.domain.AuditRecordLog; +import com.vesus.repository.AuditRecordLogRepository; +import com.vesus.service.AuditRecordLogService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.List; + +@Service +public class AuditRecordLogServiceImpl implements AuditRecordLogService { + + @Autowired + private AuditRecordLogRepository auditRecordLogRepository; + + @Override + public List findAll() { + return null; + } + + @Override + public AuditRecordLog save(AuditRecordLog auditRecordLog) { + return auditRecordLogRepository.save(auditRecordLog); + } + + @Override + public AuditRecordLog findOne(long id) { + return null; + } + + @Override + public void delete(long id) { + + } + + @Override + public List findByName(String name) { + return null; + } +} diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/service/imp/TUserServiceImpl.java b/springbott-hibernate-interceptoer/src/main/java/com/vesus/service/imp/TUserServiceImpl.java new file mode 100644 index 0000000..7efe174 --- /dev/null +++ b/springbott-hibernate-interceptoer/src/main/java/com/vesus/service/imp/TUserServiceImpl.java @@ -0,0 +1,101 @@ +package com.vesus.service.imp; + + +import com.vesus.domain.TUser; +import com.vesus.repository.TUserRepository; +import com.vesus.service.TUserService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.data.domain.Page; +import org.springframework.data.domain.PageRequest; +import org.springframework.data.domain.Pageable; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Propagation; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; +import java.util.Optional; + +@Service("tUserService") +@Transactional(propagation = Propagation.REQUIRED) +public class TUserServiceImpl implements TUserService { + + @Autowired + private TUserRepository tUserRepository; + + // + //@PersistenceContext + //private EntityManager em; + + @Override + public TUser save(TUser tUser) { + return tUserRepository.save(tUser); + } + + @Override + public Iterable saveAll(Iterable list) { + // return tUserRepository.saveAll(list); + return null; + } + + + @Override + public TUser findOne(Integer id) { + // return tUserRepository.findById(id).get(); + + return tUserRepository.findOne(id); + } + + @Override + public Optional findById(Integer id) { + //return tUserRepository.findById(id); + return null; + } + + + @Override + public boolean existsById(Integer id) { + //return tUserRepository.existsById(id); + + return tUserRepository.exists(id); + } + + @Override + public List findAll() { + return (List) tUserRepository.findAll(); + } + + @Override + public Long count() { + return tUserRepository.count(); + } + + @Override + public void deleteById(Integer id) { + // tUserRepository.deleteById(id); + tUserRepository.delete(id); + } + + @Override + public void delete(TUser tUser) { + tUserRepository.delete(tUser); + } + + + @Override + public void deleteAll(Iterable iter) { + // tUserRepository.deleteAll(iter); + } + + @Override + public Page findAllPaged(Integer pageNum, Integer pageSize) { + Pageable pageable = new PageRequest(pageNum, pageSize); + return tUserRepository.findAllPaged(pageable); + } + + public List findAllByEntityManager(String excuteSql, Class returnType) { + //Query query = em.createNativeQuery(excuteSql, returnType); + //List list = query.getResultList(); + return null; + } + +} diff --git a/springbott-hibernate-interceptoer/src/main/resources/application.properties b/springbott-hibernate-interceptoer/src/main/resources/application.properties new file mode 100644 index 0000000..83672eb --- /dev/null +++ b/springbott-hibernate-interceptoer/src/main/resources/application.properties @@ -0,0 +1,34 @@ +spring.datasource.url=jdbc:mysql://127.0.0.1:3306/test?characterEncoding=utf8 +spring.datasource.driver-class-name=com.mysql.jdbc.Driver +spring.datasource.username=root +spring.datasource.password=root +spring.jpa.show-sql=true +spring.jpa.hibernate.naming.strategy=org.hibernate.cfg.ImprovedNamingStrategy +spring.jpa.database=mysql +server.port=8080 +spring.jpa.hibernate.ddl-auto=update +hibernate.hbm2ddl.auto=true + +########################################################### +#Ʊĺ׺ĬΪ +org.hibernate.envers.audit_table_suffix=_AUD +#Ʊǰ׺ĬΪ_AUD +org.hibernate.envers.audit_table_prefix=V_ +#Ʊм¼汾ŵֶ +org.hibernate.envers.revision_field_name=VER +#Ʊݲ͵ֶƣ0 1޸ 2ɾ +org.hibernate.envers.revision_type_field_name=REVTYPE +#Ƿֹ֧޸ʱ¼޸ļ¼,ĬΪtrue +org.hibernate.envers.revision_on_collection_change=true +#Ƿ񲻶ֶֹ޸ʱ¼޸ļ¼ʹVersionֶΣĬֵΪtrue +org.hibernate.envers.do_not_audit_optimistic_locking_field=true +#Ƿɾʱ¼ֶλֻ¼idֵĬΪfalse falseֻ¼id true¼ȫֶ +org.hibernate.envers.store_data_at_delete=true +#ƱschemaĬΪnull +org.hibernate.envers.default_schema=DateBaseName +#ƱcatalogĬΪnull +#org.hibernate.envers.default_catalog +########################################################### + +##############hierbate################### +spring.jpa.properties.hibernate.ejb.interceptor=com.vesus.listener.CustomInterceptor -- Gitee From 0c6a544946385a1ef3f9c1d24f2342876a24ac71 Mon Sep 17 00:00:00 2001 From: wuxia Date: Sat, 30 Jun 2018 14:02:55 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E4=BF=AE=E6=94=B9gitinore=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 44 ++++++++++++++++++++++++++------------------ 1 file changed, 26 insertions(+), 18 deletions(-) diff --git a/.gitignore b/.gitignore index 6143e53..90230ec 100644 --- a/.gitignore +++ b/.gitignore @@ -1,22 +1,30 @@ -# Compiled class file -*.class +target/ +!.mvn/wrapper/maven-wrapper.jar -# Log file -*.log - -# BlueJ files -*.ctxt +### STS ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans -# Mobile Tools for Java (J2ME) -.mtj.tmp/ +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr -# Package Files # -*.jar -*.war -*.ear -*.zip -*.tar.gz -*.rar +### NetBeans ### +nbproject/private/ +build/ +nbbuild/ +dist/ +nbdist/ +.nb-gradle/ +LOG_PATH_IS_UNDEFINED/ -# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml -hs_err_pid* +### customer ### +*.log +*.gitignore +LOG_PATH_IS_UNDEFINED/ \ No newline at end of file -- Gitee From 28905bc5d5438822e619a61992217850c0f421d3 Mon Sep 17 00:00:00 2001 From: wuxia Date: Sat, 30 Jun 2018 14:36:43 +0800 Subject: [PATCH 4/5] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8B=A6=E6=88=AA?= =?UTF-8?q?=E5=99=A8=E9=A1=B9=E7=9B=AE=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/compiler.xml | 4 ++++ .idea/encodings.xml | 2 ++ .idea/libraries/Maven__antlr_antlr_2_7_7.xml | 6 +++--- .idea/libraries/Maven__aopalliance_aopalliance_1_0.xml | 6 +++--- .../Maven__ch_qos_logback_logback_classic_1_1_11.xml | 6 +++--- .../Maven__ch_qos_logback_logback_classic_1_2_3.xml | 6 +++--- .../libraries/Maven__ch_qos_logback_logback_core_1_1_11.xml | 6 +++--- .../libraries/Maven__ch_qos_logback_logback_core_1_2_3.xml | 6 +++--- .idea/libraries/Maven__com_alibaba_druid_1_0_29.xml | 6 +++--- .idea/libraries/Maven__com_alibaba_fastjson_1_2_15.xml | 6 +++--- .idea/libraries/Maven__com_fasterxml_classmate_1_3_4.xml | 6 +++--- ...com_fasterxml_jackson_core_jackson_annotations_2_8_0.xml | 6 +++--- ...com_fasterxml_jackson_core_jackson_annotations_2_9_0.xml | 6 +++--- ...aven__com_fasterxml_jackson_core_jackson_core_2_8_10.xml | 6 +++--- ...Maven__com_fasterxml_jackson_core_jackson_core_2_9_5.xml | 6 +++--- ...__com_fasterxml_jackson_core_jackson_databind_2_8_10.xml | 6 +++--- ...n__com_fasterxml_jackson_core_jackson_databind_2_9_5.xml | 6 +++--- ...sterxml_jackson_datatype_jackson_datatype_jdk8_2_9_5.xml | 6 +++--- ...erxml_jackson_datatype_jackson_datatype_jsr310_2_9_5.xml | 6 +++--- ..._jackson_module_jackson_module_parameter_names_2_9_5.xml | 6 +++--- .../Maven__com_jayway_jsonpath_json_path_2_2_0.xml | 6 +++--- .../Maven__com_jayway_jsonpath_json_path_2_4_0.xml | 6 +++--- ...in_external_google_android_json_0_0_20131108_vaadin1.xml | 6 +++--- .idea/libraries/Maven__commons_codec_commons_codec_1_10.xml | 6 +++--- .idea/libraries/Maven__dom4j_dom4j_1_6_1.xml | 6 +++--- .idea/libraries/Maven__io_jsonwebtoken_jjwt_0_7_0.xml | 6 +++--- .../Maven__io_undertow_undertow_core_1_4_22_Final.xml | 6 +++--- .../Maven__io_undertow_undertow_servlet_1_4_22_Final.xml | 6 +++--- ...en__io_undertow_undertow_websockets_jsr_1_4_22_Final.xml | 6 +++--- .../Maven__javax_annotation_javax_annotation_api_1_3_2.xml | 6 +++--- .../Maven__javax_servlet_javax_servlet_api_3_1_0.xml | 6 +++--- .idea/libraries/Maven__javax_servlet_jstl_1_2.xml | 6 +++--- .../Maven__javax_transaction_javax_transaction_api_1_2.xml | 6 +++--- .../Maven__javax_validation_validation_api_1_1_0_Final.xml | 6 +++--- .../Maven__javax_validation_validation_api_2_0_1_Final.xml | 6 +++--- .idea/libraries/Maven__junit_junit_4_12.xml | 6 +++--- .../libraries/Maven__mysql_mysql_connector_java_5_1_45.xml | 6 +++--- .idea/libraries/Maven__net_bytebuddy_byte_buddy_1_7_11.xml | 6 +++--- .../Maven__net_bytebuddy_byte_buddy_agent_1_7_11.xml | 6 +++--- .idea/libraries/Maven__net_minidev_accessors_smart_1_1.xml | 6 +++--- .idea/libraries/Maven__net_minidev_accessors_smart_1_2.xml | 6 +++--- .idea/libraries/Maven__net_minidev_json_smart_2_2_1.xml | 6 +++--- .idea/libraries/Maven__net_minidev_json_smart_2_3.xml | 6 +++--- ...en__net_oschina_zcx7878_fastdfs_client_java_1_27_0_0.xml | 6 +++--- .../Maven__org_apache_commons_commons_pool2_2_4_2.xml | 6 +++--- .../Maven__org_apache_commons_commons_pool2_2_4_3.xml | 6 +++--- .../Maven__org_apache_logging_log4j_log4j_api_2_10_0.xml | 6 +++--- ...aven__org_apache_logging_log4j_log4j_to_slf4j_2_10_0.xml | 6 +++--- ...en__org_apache_tomcat_embed_tomcat_embed_core_8_5_27.xml | 6 +++--- ...en__org_apache_tomcat_embed_tomcat_embed_core_8_5_31.xml | 6 +++--- ...aven__org_apache_tomcat_embed_tomcat_embed_el_8_5_27.xml | 6 +++--- ...aven__org_apache_tomcat_embed_tomcat_embed_el_8_5_31.xml | 6 +++--- ...__org_apache_tomcat_embed_tomcat_embed_jasper_8_5_27.xml | 6 +++--- ...__org_apache_tomcat_embed_tomcat_embed_jasper_8_5_31.xml | 6 +++--- ...rg_apache_tomcat_embed_tomcat_embed_websocket_8_5_27.xml | 6 +++--- ...rg_apache_tomcat_embed_tomcat_embed_websocket_8_5_31.xml | 6 +++--- ...ven__org_apache_tomcat_tomcat_annotations_api_8_5_27.xml | 6 +++--- ...ven__org_apache_tomcat_tomcat_annotations_api_8_5_31.xml | 6 +++--- .../Maven__org_apache_tomcat_tomcat_jdbc_8_5_27.xml | 6 +++--- .../Maven__org_apache_tomcat_tomcat_juli_8_5_27.xml | 6 +++--- .idea/libraries/Maven__org_aspectj_aspectjweaver_1_8_13.xml | 6 +++--- .idea/libraries/Maven__org_assertj_assertj_core_2_6_0.xml | 6 +++--- .idea/libraries/Maven__org_assertj_assertj_core_3_9_1.xml | 6 +++--- .../Maven__org_codehaus_jackson_jackson_core_asl_1_9_13.xml | 6 +++--- ...aven__org_codehaus_jackson_jackson_mapper_asl_1_9_13.xml | 6 +++--- .idea/libraries/Maven__org_eclipse_jdt_ecj_3_12_3.xml | 6 +++--- .idea/libraries/Maven__org_glassfish_javax_el_3_0_0.xml | 6 +++--- .idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml | 6 +++--- .../libraries/Maven__org_hamcrest_hamcrest_library_1_3.xml | 6 +++--- ...ate_common_hibernate_commons_annotations_5_0_1_Final.xml | 6 +++--- .../Maven__org_hibernate_hibernate_core_5_0_12_Final.xml | 6 +++--- ...__org_hibernate_hibernate_entitymanager_5_0_12_Final.xml | 6 +++--- ...Maven__org_hibernate_hibernate_validator_5_3_6_Final.xml | 6 +++--- ..._javax_persistence_hibernate_jpa_2_1_api_1_0_0_Final.xml | 6 +++--- ..._hibernate_validator_hibernate_validator_6_0_9_Final.xml | 6 +++--- .../libraries/Maven__org_javassist_javassist_3_21_0_GA.xml | 6 +++--- .idea/libraries/Maven__org_jboss_jandex_2_0_0_Final.xml | 6 +++--- .../Maven__org_jboss_logging_jboss_logging_3_3_1_Final.xml | 6 +++--- .../Maven__org_jboss_logging_jboss_logging_3_3_2_Final.xml | 6 +++--- ...nnotation_jboss_annotations_api_1_2_spec_1_0_0_Final.xml | 6 +++--- ...x_websocket_jboss_websocket_api_1_1_spec_1_1_0_Final.xml | 6 +++--- .../Maven__org_jboss_xnio_xnio_api_3_3_8_Final.xml | 6 +++--- .../Maven__org_jboss_xnio_xnio_nio_3_3_8_Final.xml | 6 +++--- .idea/libraries/Maven__org_mockito_mockito_core_1_10_19.xml | 6 +++--- .idea/libraries/Maven__org_mockito_mockito_core_2_15_0.xml | 6 +++--- .idea/libraries/Maven__org_objenesis_objenesis_2_1.xml | 6 +++--- .idea/libraries/Maven__org_objenesis_objenesis_2_6.xml | 6 +++--- .idea/libraries/Maven__org_ow2_asm_asm_5_0_3.xml | 6 +++--- .idea/libraries/Maven__org_ow2_asm_asm_5_0_4.xml | 6 +++--- .idea/libraries/Maven__org_skyscreamer_jsonassert_1_4_0.xml | 6 +++--- .idea/libraries/Maven__org_skyscreamer_jsonassert_1_5_0.xml | 6 +++--- .idea/libraries/Maven__org_slf4j_jcl_over_slf4j_1_7_25.xml | 6 +++--- .idea/libraries/Maven__org_slf4j_jul_to_slf4j_1_7_25.xml | 6 +++--- .../libraries/Maven__org_slf4j_log4j_over_slf4j_1_7_25.xml | 6 +++--- .idea/libraries/Maven__org_slf4j_slf4j_api_1_7_25.xml | 6 +++--- ..._org_springframework_boot_spring_boot_1_5_10_RELEASE.xml | 6 +++--- ...__org_springframework_boot_spring_boot_2_0_2_RELEASE.xml | 6 +++--- ...mework_boot_spring_boot_autoconfigure_1_5_10_RELEASE.xml | 6 +++--- ...amework_boot_spring_boot_autoconfigure_2_0_2_RELEASE.xml | 6 +++--- ...ingframework_boot_spring_boot_starter_1_5_10_RELEASE.xml | 6 +++--- ...ringframework_boot_spring_boot_starter_2_0_2_RELEASE.xml | 6 +++--- ...ramework_boot_spring_boot_starter_aop_1_5_10_RELEASE.xml | 6 +++--- ...ork_boot_spring_boot_starter_data_jpa_1_5_10_RELEASE.xml | 6 +++--- ...k_boot_spring_boot_starter_data_redis_1_5_10_RELEASE.xml | 6 +++--- ...amework_boot_spring_boot_starter_jdbc_1_5_10_RELEASE.xml | 6 +++--- ...ramework_boot_spring_boot_starter_json_2_0_2_RELEASE.xml | 6 +++--- ...work_boot_spring_boot_starter_logging_1_5_10_RELEASE.xml | 6 +++--- ...ework_boot_spring_boot_starter_logging_2_0_2_RELEASE.xml | 6 +++--- ...ork_boot_spring_boot_starter_security_1_5_10_RELEASE.xml | 6 +++--- ...amework_boot_spring_boot_starter_test_1_5_10_RELEASE.xml | 6 +++--- ...ramework_boot_spring_boot_starter_test_2_0_2_RELEASE.xml | 6 +++--- ...ework_boot_spring_boot_starter_tomcat_1_5_10_RELEASE.xml | 6 +++--- ...mework_boot_spring_boot_starter_tomcat_2_0_2_RELEASE.xml | 6 +++--- ...ork_boot_spring_boot_starter_undertow_1_5_10_RELEASE.xml | 6 +++--- ...ramework_boot_spring_boot_starter_web_1_5_10_RELEASE.xml | 6 +++--- ...framework_boot_spring_boot_starter_web_2_0_2_RELEASE.xml | 6 +++--- ...ork_boot_spring_boot_starter_websocket_2_0_2_RELEASE.xml | 6 +++--- ...springframework_boot_spring_boot_test_1_5_10_RELEASE.xml | 6 +++--- ..._springframework_boot_spring_boot_test_2_0_2_RELEASE.xml | 6 +++--- ...k_boot_spring_boot_test_autoconfigure_1_5_10_RELEASE.xml | 6 +++--- ...rk_boot_spring_boot_test_autoconfigure_2_0_2_RELEASE.xml | 6 +++--- ...ngframework_data_spring_data_commons_1_13_10_RELEASE.xml | 6 +++--- ...springframework_data_spring_data_jpa_1_11_10_RELEASE.xml | 6 +++--- ...ngframework_data_spring_data_keyvalue_1_2_10_RELEASE.xml | 6 +++--- ...pringframework_data_spring_data_redis_1_8_10_RELEASE.xml | 6 +++--- ...security_oauth_spring_security_oauth2_2_0_14_RELEASE.xml | 6 +++--- ...mework_security_spring_security_config_4_2_4_RELEASE.xml | 6 +++--- ...ramework_security_spring_security_core_4_2_4_RELEASE.xml | 6 +++--- ...framework_security_spring_security_web_4_2_4_RELEASE.xml | 6 +++--- ...Maven__org_springframework_spring_aop_4_3_14_RELEASE.xml | 6 +++--- .../Maven__org_springframework_spring_aop_5_0_6_RELEASE.xml | 6 +++--- ...n__org_springframework_spring_aspects_4_3_14_RELEASE.xml | 6 +++--- ...ven__org_springframework_spring_beans_4_3_14_RELEASE.xml | 6 +++--- ...aven__org_springframework_spring_beans_5_0_6_RELEASE.xml | 6 +++--- ...n__org_springframework_spring_context_4_3_14_RELEASE.xml | 6 +++--- ...en__org_springframework_spring_context_5_0_6_RELEASE.xml | 6 +++--- ...pringframework_spring_context_support_4_3_14_RELEASE.xml | 6 +++--- ...aven__org_springframework_spring_core_4_3_14_RELEASE.xml | 6 +++--- ...Maven__org_springframework_spring_core_5_0_6_RELEASE.xml | 6 +++--- ...org_springframework_spring_expression_4_3_14_RELEASE.xml | 6 +++--- ..._org_springframework_spring_expression_5_0_6_RELEASE.xml | 6 +++--- .../Maven__org_springframework_spring_jcl_5_0_6_RELEASE.xml | 6 +++--- ...aven__org_springframework_spring_jdbc_4_3_14_RELEASE.xml | 6 +++--- ...__org_springframework_spring_messaging_5_0_6_RELEASE.xml | 6 +++--- ...Maven__org_springframework_spring_orm_4_3_14_RELEASE.xml | 6 +++--- ...Maven__org_springframework_spring_oxm_4_3_14_RELEASE.xml | 6 +++--- ...aven__org_springframework_spring_test_4_3_14_RELEASE.xml | 6 +++--- ...Maven__org_springframework_spring_test_5_0_6_RELEASE.xml | 6 +++--- .../Maven__org_springframework_spring_tx_4_3_14_RELEASE.xml | 6 +++--- ...Maven__org_springframework_spring_web_4_3_14_RELEASE.xml | 6 +++--- .../Maven__org_springframework_spring_web_5_0_6_RELEASE.xml | 6 +++--- ...en__org_springframework_spring_webmvc_4_3_14_RELEASE.xml | 6 +++--- ...ven__org_springframework_spring_webmvc_5_0_6_RELEASE.xml | 6 +++--- ...__org_springframework_spring_websocket_5_0_6_RELEASE.xml | 6 +++--- .idea/libraries/Maven__org_xmlunit_xmlunit_core_2_5_1.xml | 6 +++--- .idea/libraries/Maven__org_yaml_snakeyaml_1_17.xml | 6 +++--- .idea/libraries/Maven__org_yaml_snakeyaml_1_19.xml | 6 +++--- .idea/libraries/Maven__redis_clients_jedis_2_9_0.xml | 6 +++--- .idea/misc.xml | 2 ++ .idea/modules.xml | 2 ++ .../pom.xml | 2 +- .../SpringBootHibernateAditInterceptorApplication.java | 1 - .../src/main/java/com/vesus/audit/AuditEntityAlias.java | 0 .../src/main/java/com/vesus/audit/AuditFieldAlias.java | 0 .../main/java/com/vesus/audit/AuditModifyFieldObject.java | 0 .../src/main/java/com/vesus/audit/AuditOperationRecord.java | 0 .../java/com/vesus/audit/AuditOperationRecordAware.java | 0 .../java/com/vesus/audit/AuditOperationRecordAwareImpl.java | 0 .../src/main/java/com/vesus/audit/AuditOperationType.java | 0 .../src/main/java/com/vesus/audit/AuditPrimaryID.java | 0 .../src/main/java/com/vesus/controller/TUserController.java | 0 .../src/main/java/com/vesus/domain/AuditRecordLog.java | 1 - .../main/java/com/vesus/domain/CustomerRevisionEntity.java | 2 -- .../src/main/java/com/vesus/domain/TUser.java | 1 - .../main/java/com/vesus/listener/CustomAuditListener.java | 0 .../src/main/java/com/vesus/listener/CustomAuditor.java | 0 .../src/main/java/com/vesus/listener/CustomInterceptor.java | 0 .../java/com/vesus/listener/CustomRevisionListener.java | 0 .../java/com/vesus/repository/AuditRecordLogRepository.java | 0 .../src/main/java/com/vesus/repository/TUserRepository.java | 0 .../main/java/com/vesus/service/AuditRecordLogService.java | 0 .../src/main/java/com/vesus/service/TUserService.java | 0 .../com/vesus/service/imp/AuditRecordLogServiceImpl.java | 0 .../main/java/com/vesus/service/imp/TUserServiceImpl.java | 0 .../src/main/resources/application.properties | 0 185 files changed, 479 insertions(+), 474 deletions(-) rename {springbott-hibernate-interceptoer => springboot-hibernate-interceptoer}/pom.xml (97%) rename {springbott-hibernate-interceptoer => springboot-hibernate-interceptoer}/src/main/java/com/vesus/SpringBootHibernateAditInterceptorApplication.java (97%) rename {springbott-hibernate-interceptoer => springboot-hibernate-interceptoer}/src/main/java/com/vesus/audit/AuditEntityAlias.java (100%) rename {springbott-hibernate-interceptoer => springboot-hibernate-interceptoer}/src/main/java/com/vesus/audit/AuditFieldAlias.java (100%) rename {springbott-hibernate-interceptoer => springboot-hibernate-interceptoer}/src/main/java/com/vesus/audit/AuditModifyFieldObject.java (100%) rename {springbott-hibernate-interceptoer => springboot-hibernate-interceptoer}/src/main/java/com/vesus/audit/AuditOperationRecord.java (100%) rename {springbott-hibernate-interceptoer => springboot-hibernate-interceptoer}/src/main/java/com/vesus/audit/AuditOperationRecordAware.java (100%) rename {springbott-hibernate-interceptoer => springboot-hibernate-interceptoer}/src/main/java/com/vesus/audit/AuditOperationRecordAwareImpl.java (100%) rename {springbott-hibernate-interceptoer => springboot-hibernate-interceptoer}/src/main/java/com/vesus/audit/AuditOperationType.java (100%) rename {springbott-hibernate-interceptoer => springboot-hibernate-interceptoer}/src/main/java/com/vesus/audit/AuditPrimaryID.java (100%) rename {springbott-hibernate-interceptoer => springboot-hibernate-interceptoer}/src/main/java/com/vesus/controller/TUserController.java (100%) rename {springbott-hibernate-interceptoer => springboot-hibernate-interceptoer}/src/main/java/com/vesus/domain/AuditRecordLog.java (98%) rename {springbott-hibernate-interceptoer => springboot-hibernate-interceptoer}/src/main/java/com/vesus/domain/CustomerRevisionEntity.java (97%) rename {springbott-hibernate-interceptoer => springboot-hibernate-interceptoer}/src/main/java/com/vesus/domain/TUser.java (99%) rename {springbott-hibernate-interceptoer => springboot-hibernate-interceptoer}/src/main/java/com/vesus/listener/CustomAuditListener.java (100%) rename {springbott-hibernate-interceptoer => springboot-hibernate-interceptoer}/src/main/java/com/vesus/listener/CustomAuditor.java (100%) rename {springbott-hibernate-interceptoer => springboot-hibernate-interceptoer}/src/main/java/com/vesus/listener/CustomInterceptor.java (100%) rename {springbott-hibernate-interceptoer => springboot-hibernate-interceptoer}/src/main/java/com/vesus/listener/CustomRevisionListener.java (100%) rename {springbott-hibernate-interceptoer => springboot-hibernate-interceptoer}/src/main/java/com/vesus/repository/AuditRecordLogRepository.java (100%) rename {springbott-hibernate-interceptoer => springboot-hibernate-interceptoer}/src/main/java/com/vesus/repository/TUserRepository.java (100%) rename {springbott-hibernate-interceptoer => springboot-hibernate-interceptoer}/src/main/java/com/vesus/service/AuditRecordLogService.java (100%) rename {springbott-hibernate-interceptoer => springboot-hibernate-interceptoer}/src/main/java/com/vesus/service/TUserService.java (100%) rename {springbott-hibernate-interceptoer => springboot-hibernate-interceptoer}/src/main/java/com/vesus/service/imp/AuditRecordLogServiceImpl.java (100%) rename {springbott-hibernate-interceptoer => springboot-hibernate-interceptoer}/src/main/java/com/vesus/service/imp/TUserServiceImpl.java (100%) rename {springbott-hibernate-interceptoer => springboot-hibernate-interceptoer}/src/main/resources/application.properties (100%) diff --git a/.idea/compiler.xml b/.idea/compiler.xml index d3942e8..077b5c2 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -10,6 +10,8 @@ + + @@ -27,6 +29,8 @@ + + diff --git a/.idea/encodings.xml b/.idea/encodings.xml index 89083e8..0d51791 100644 --- a/.idea/encodings.xml +++ b/.idea/encodings.xml @@ -5,6 +5,8 @@ + + diff --git a/.idea/libraries/Maven__antlr_antlr_2_7_7.xml b/.idea/libraries/Maven__antlr_antlr_2_7_7.xml index 2d3d1fb..7ee868b 100644 --- a/.idea/libraries/Maven__antlr_antlr_2_7_7.xml +++ b/.idea/libraries/Maven__antlr_antlr_2_7_7.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__aopalliance_aopalliance_1_0.xml b/.idea/libraries/Maven__aopalliance_aopalliance_1_0.xml index d0b496f..af041bc 100644 --- a/.idea/libraries/Maven__aopalliance_aopalliance_1_0.xml +++ b/.idea/libraries/Maven__aopalliance_aopalliance_1_0.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__ch_qos_logback_logback_classic_1_1_11.xml b/.idea/libraries/Maven__ch_qos_logback_logback_classic_1_1_11.xml index 67d0182..1ab5674 100644 --- a/.idea/libraries/Maven__ch_qos_logback_logback_classic_1_1_11.xml +++ b/.idea/libraries/Maven__ch_qos_logback_logback_classic_1_1_11.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__ch_qos_logback_logback_classic_1_2_3.xml b/.idea/libraries/Maven__ch_qos_logback_logback_classic_1_2_3.xml index d716bf1..d857a0a 100644 --- a/.idea/libraries/Maven__ch_qos_logback_logback_classic_1_2_3.xml +++ b/.idea/libraries/Maven__ch_qos_logback_logback_classic_1_2_3.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__ch_qos_logback_logback_core_1_1_11.xml b/.idea/libraries/Maven__ch_qos_logback_logback_core_1_1_11.xml index f19cb80..9a27920 100644 --- a/.idea/libraries/Maven__ch_qos_logback_logback_core_1_1_11.xml +++ b/.idea/libraries/Maven__ch_qos_logback_logback_core_1_1_11.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__ch_qos_logback_logback_core_1_2_3.xml b/.idea/libraries/Maven__ch_qos_logback_logback_core_1_2_3.xml index 24fe9a5..4284a24 100644 --- a/.idea/libraries/Maven__ch_qos_logback_logback_core_1_2_3.xml +++ b/.idea/libraries/Maven__ch_qos_logback_logback_core_1_2_3.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_alibaba_druid_1_0_29.xml b/.idea/libraries/Maven__com_alibaba_druid_1_0_29.xml index 41d7a64..28eda87 100644 --- a/.idea/libraries/Maven__com_alibaba_druid_1_0_29.xml +++ b/.idea/libraries/Maven__com_alibaba_druid_1_0_29.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_alibaba_fastjson_1_2_15.xml b/.idea/libraries/Maven__com_alibaba_fastjson_1_2_15.xml index 90c28ec..133fb58 100644 --- a/.idea/libraries/Maven__com_alibaba_fastjson_1_2_15.xml +++ b/.idea/libraries/Maven__com_alibaba_fastjson_1_2_15.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_fasterxml_classmate_1_3_4.xml b/.idea/libraries/Maven__com_fasterxml_classmate_1_3_4.xml index e0d1a87..b8f7ba0 100644 --- a/.idea/libraries/Maven__com_fasterxml_classmate_1_3_4.xml +++ b/.idea/libraries/Maven__com_fasterxml_classmate_1_3_4.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_8_0.xml b/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_8_0.xml index e4c930e..b47d537 100644 --- a/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_8_0.xml +++ b/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_8_0.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_9_0.xml b/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_9_0.xml index 10916fc..8063b7b 100644 --- a/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_9_0.xml +++ b/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_9_0.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_8_10.xml b/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_8_10.xml index a69de1f..781fc53 100644 --- a/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_8_10.xml +++ b/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_8_10.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_9_5.xml b/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_9_5.xml index 78db75f..a94c862 100644 --- a/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_9_5.xml +++ b/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_9_5.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_8_10.xml b/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_8_10.xml index eac9e19..3c98308 100644 --- a/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_8_10.xml +++ b/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_8_10.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_9_5.xml b/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_9_5.xml index 1e6e9b0..67a6ecc 100644 --- a/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_9_5.xml +++ b/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_9_5.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_9_5.xml b/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_9_5.xml index a4c9c44..f85d4cc 100644 --- a/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_9_5.xml +++ b/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_9_5.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_9_5.xml b/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_9_5.xml index 98d83a6..64be1b6 100644 --- a/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_9_5.xml +++ b/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_9_5.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_9_5.xml b/.idea/libraries/Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_9_5.xml index 71ccf99..837fc70 100644 --- a/.idea/libraries/Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_9_5.xml +++ b/.idea/libraries/Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_9_5.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_jayway_jsonpath_json_path_2_2_0.xml b/.idea/libraries/Maven__com_jayway_jsonpath_json_path_2_2_0.xml index 4a51919..9782da5 100644 --- a/.idea/libraries/Maven__com_jayway_jsonpath_json_path_2_2_0.xml +++ b/.idea/libraries/Maven__com_jayway_jsonpath_json_path_2_2_0.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_jayway_jsonpath_json_path_2_4_0.xml b/.idea/libraries/Maven__com_jayway_jsonpath_json_path_2_4_0.xml index 16b1d2c..d3b6947 100644 --- a/.idea/libraries/Maven__com_jayway_jsonpath_json_path_2_4_0.xml +++ b/.idea/libraries/Maven__com_jayway_jsonpath_json_path_2_4_0.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml b/.idea/libraries/Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml index 47f18e6..da06b5f 100644 --- a/.idea/libraries/Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml +++ b/.idea/libraries/Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__commons_codec_commons_codec_1_10.xml b/.idea/libraries/Maven__commons_codec_commons_codec_1_10.xml index f454eff..29af6b5 100644 --- a/.idea/libraries/Maven__commons_codec_commons_codec_1_10.xml +++ b/.idea/libraries/Maven__commons_codec_commons_codec_1_10.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__dom4j_dom4j_1_6_1.xml b/.idea/libraries/Maven__dom4j_dom4j_1_6_1.xml index 8bd8560..ecdf40f 100644 --- a/.idea/libraries/Maven__dom4j_dom4j_1_6_1.xml +++ b/.idea/libraries/Maven__dom4j_dom4j_1_6_1.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__io_jsonwebtoken_jjwt_0_7_0.xml b/.idea/libraries/Maven__io_jsonwebtoken_jjwt_0_7_0.xml index 73eb5f4..182fe99 100644 --- a/.idea/libraries/Maven__io_jsonwebtoken_jjwt_0_7_0.xml +++ b/.idea/libraries/Maven__io_jsonwebtoken_jjwt_0_7_0.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__io_undertow_undertow_core_1_4_22_Final.xml b/.idea/libraries/Maven__io_undertow_undertow_core_1_4_22_Final.xml index 8fd6976..16b973e 100644 --- a/.idea/libraries/Maven__io_undertow_undertow_core_1_4_22_Final.xml +++ b/.idea/libraries/Maven__io_undertow_undertow_core_1_4_22_Final.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__io_undertow_undertow_servlet_1_4_22_Final.xml b/.idea/libraries/Maven__io_undertow_undertow_servlet_1_4_22_Final.xml index 790fc79..ab88273 100644 --- a/.idea/libraries/Maven__io_undertow_undertow_servlet_1_4_22_Final.xml +++ b/.idea/libraries/Maven__io_undertow_undertow_servlet_1_4_22_Final.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__io_undertow_undertow_websockets_jsr_1_4_22_Final.xml b/.idea/libraries/Maven__io_undertow_undertow_websockets_jsr_1_4_22_Final.xml index e2ebf03..c9c2c3e 100644 --- a/.idea/libraries/Maven__io_undertow_undertow_websockets_jsr_1_4_22_Final.xml +++ b/.idea/libraries/Maven__io_undertow_undertow_websockets_jsr_1_4_22_Final.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__javax_annotation_javax_annotation_api_1_3_2.xml b/.idea/libraries/Maven__javax_annotation_javax_annotation_api_1_3_2.xml index d4763e5..c705add 100644 --- a/.idea/libraries/Maven__javax_annotation_javax_annotation_api_1_3_2.xml +++ b/.idea/libraries/Maven__javax_annotation_javax_annotation_api_1_3_2.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__javax_servlet_javax_servlet_api_3_1_0.xml b/.idea/libraries/Maven__javax_servlet_javax_servlet_api_3_1_0.xml index a34a002..7e5704e 100644 --- a/.idea/libraries/Maven__javax_servlet_javax_servlet_api_3_1_0.xml +++ b/.idea/libraries/Maven__javax_servlet_javax_servlet_api_3_1_0.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__javax_servlet_jstl_1_2.xml b/.idea/libraries/Maven__javax_servlet_jstl_1_2.xml index 69b911b..5b6a533 100644 --- a/.idea/libraries/Maven__javax_servlet_jstl_1_2.xml +++ b/.idea/libraries/Maven__javax_servlet_jstl_1_2.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__javax_transaction_javax_transaction_api_1_2.xml b/.idea/libraries/Maven__javax_transaction_javax_transaction_api_1_2.xml index 2498901..f1a3993 100644 --- a/.idea/libraries/Maven__javax_transaction_javax_transaction_api_1_2.xml +++ b/.idea/libraries/Maven__javax_transaction_javax_transaction_api_1_2.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__javax_validation_validation_api_1_1_0_Final.xml b/.idea/libraries/Maven__javax_validation_validation_api_1_1_0_Final.xml index f276fea..ecaf681 100644 --- a/.idea/libraries/Maven__javax_validation_validation_api_1_1_0_Final.xml +++ b/.idea/libraries/Maven__javax_validation_validation_api_1_1_0_Final.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__javax_validation_validation_api_2_0_1_Final.xml b/.idea/libraries/Maven__javax_validation_validation_api_2_0_1_Final.xml index 21c2a6e..5890302 100644 --- a/.idea/libraries/Maven__javax_validation_validation_api_2_0_1_Final.xml +++ b/.idea/libraries/Maven__javax_validation_validation_api_2_0_1_Final.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__junit_junit_4_12.xml b/.idea/libraries/Maven__junit_junit_4_12.xml index c722d66..4d72f8a 100644 --- a/.idea/libraries/Maven__junit_junit_4_12.xml +++ b/.idea/libraries/Maven__junit_junit_4_12.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__mysql_mysql_connector_java_5_1_45.xml b/.idea/libraries/Maven__mysql_mysql_connector_java_5_1_45.xml index c4645c0..738b233 100644 --- a/.idea/libraries/Maven__mysql_mysql_connector_java_5_1_45.xml +++ b/.idea/libraries/Maven__mysql_mysql_connector_java_5_1_45.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__net_bytebuddy_byte_buddy_1_7_11.xml b/.idea/libraries/Maven__net_bytebuddy_byte_buddy_1_7_11.xml index c8c6a49..6b45884 100644 --- a/.idea/libraries/Maven__net_bytebuddy_byte_buddy_1_7_11.xml +++ b/.idea/libraries/Maven__net_bytebuddy_byte_buddy_1_7_11.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__net_bytebuddy_byte_buddy_agent_1_7_11.xml b/.idea/libraries/Maven__net_bytebuddy_byte_buddy_agent_1_7_11.xml index dce5569..af2a77d 100644 --- a/.idea/libraries/Maven__net_bytebuddy_byte_buddy_agent_1_7_11.xml +++ b/.idea/libraries/Maven__net_bytebuddy_byte_buddy_agent_1_7_11.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__net_minidev_accessors_smart_1_1.xml b/.idea/libraries/Maven__net_minidev_accessors_smart_1_1.xml index ba16640..4a8787b 100644 --- a/.idea/libraries/Maven__net_minidev_accessors_smart_1_1.xml +++ b/.idea/libraries/Maven__net_minidev_accessors_smart_1_1.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__net_minidev_accessors_smart_1_2.xml b/.idea/libraries/Maven__net_minidev_accessors_smart_1_2.xml index bc382c3..735d6dd 100644 --- a/.idea/libraries/Maven__net_minidev_accessors_smart_1_2.xml +++ b/.idea/libraries/Maven__net_minidev_accessors_smart_1_2.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__net_minidev_json_smart_2_2_1.xml b/.idea/libraries/Maven__net_minidev_json_smart_2_2_1.xml index cef0433..a915e69 100644 --- a/.idea/libraries/Maven__net_minidev_json_smart_2_2_1.xml +++ b/.idea/libraries/Maven__net_minidev_json_smart_2_2_1.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__net_minidev_json_smart_2_3.xml b/.idea/libraries/Maven__net_minidev_json_smart_2_3.xml index fd0c340..b523331 100644 --- a/.idea/libraries/Maven__net_minidev_json_smart_2_3.xml +++ b/.idea/libraries/Maven__net_minidev_json_smart_2_3.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__net_oschina_zcx7878_fastdfs_client_java_1_27_0_0.xml b/.idea/libraries/Maven__net_oschina_zcx7878_fastdfs_client_java_1_27_0_0.xml index c90664e..9b45913 100644 --- a/.idea/libraries/Maven__net_oschina_zcx7878_fastdfs_client_java_1_27_0_0.xml +++ b/.idea/libraries/Maven__net_oschina_zcx7878_fastdfs_client_java_1_27_0_0.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_commons_commons_pool2_2_4_2.xml b/.idea/libraries/Maven__org_apache_commons_commons_pool2_2_4_2.xml index d1eff74..626a962 100644 --- a/.idea/libraries/Maven__org_apache_commons_commons_pool2_2_4_2.xml +++ b/.idea/libraries/Maven__org_apache_commons_commons_pool2_2_4_2.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_commons_commons_pool2_2_4_3.xml b/.idea/libraries/Maven__org_apache_commons_commons_pool2_2_4_3.xml index 1199a84..0b00111 100644 --- a/.idea/libraries/Maven__org_apache_commons_commons_pool2_2_4_3.xml +++ b/.idea/libraries/Maven__org_apache_commons_commons_pool2_2_4_3.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_logging_log4j_log4j_api_2_10_0.xml b/.idea/libraries/Maven__org_apache_logging_log4j_log4j_api_2_10_0.xml index c97f8e7..fd533d5 100644 --- a/.idea/libraries/Maven__org_apache_logging_log4j_log4j_api_2_10_0.xml +++ b/.idea/libraries/Maven__org_apache_logging_log4j_log4j_api_2_10_0.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_logging_log4j_log4j_to_slf4j_2_10_0.xml b/.idea/libraries/Maven__org_apache_logging_log4j_log4j_to_slf4j_2_10_0.xml index be27365..e3939c6 100644 --- a/.idea/libraries/Maven__org_apache_logging_log4j_log4j_to_slf4j_2_10_0.xml +++ b/.idea/libraries/Maven__org_apache_logging_log4j_log4j_to_slf4j_2_10_0.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_core_8_5_27.xml b/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_core_8_5_27.xml index abf036f..67d3b62 100644 --- a/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_core_8_5_27.xml +++ b/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_core_8_5_27.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_core_8_5_31.xml b/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_core_8_5_31.xml index cb194fa..5ee5ea6 100644 --- a/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_core_8_5_31.xml +++ b/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_core_8_5_31.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_el_8_5_27.xml b/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_el_8_5_27.xml index b9d3439..0545536 100644 --- a/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_el_8_5_27.xml +++ b/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_el_8_5_27.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_el_8_5_31.xml b/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_el_8_5_31.xml index 39eaa82..249ce14 100644 --- a/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_el_8_5_31.xml +++ b/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_el_8_5_31.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_jasper_8_5_27.xml b/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_jasper_8_5_27.xml index fe14166..cf44315 100644 --- a/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_jasper_8_5_27.xml +++ b/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_jasper_8_5_27.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_jasper_8_5_31.xml b/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_jasper_8_5_31.xml index 80a4e2f..d5835dc 100644 --- a/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_jasper_8_5_31.xml +++ b/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_jasper_8_5_31.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_websocket_8_5_27.xml b/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_websocket_8_5_27.xml index 03c1a37..9b623c2 100644 --- a/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_websocket_8_5_27.xml +++ b/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_websocket_8_5_27.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_websocket_8_5_31.xml b/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_websocket_8_5_31.xml index b003023..74eb3d6 100644 --- a/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_websocket_8_5_31.xml +++ b/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_websocket_8_5_31.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_tomcat_tomcat_annotations_api_8_5_27.xml b/.idea/libraries/Maven__org_apache_tomcat_tomcat_annotations_api_8_5_27.xml index 3691bd4..c3fb555 100644 --- a/.idea/libraries/Maven__org_apache_tomcat_tomcat_annotations_api_8_5_27.xml +++ b/.idea/libraries/Maven__org_apache_tomcat_tomcat_annotations_api_8_5_27.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_tomcat_tomcat_annotations_api_8_5_31.xml b/.idea/libraries/Maven__org_apache_tomcat_tomcat_annotations_api_8_5_31.xml index a154168..3f59526 100644 --- a/.idea/libraries/Maven__org_apache_tomcat_tomcat_annotations_api_8_5_31.xml +++ b/.idea/libraries/Maven__org_apache_tomcat_tomcat_annotations_api_8_5_31.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_tomcat_tomcat_jdbc_8_5_27.xml b/.idea/libraries/Maven__org_apache_tomcat_tomcat_jdbc_8_5_27.xml index ee2541e..5fa1b99 100644 --- a/.idea/libraries/Maven__org_apache_tomcat_tomcat_jdbc_8_5_27.xml +++ b/.idea/libraries/Maven__org_apache_tomcat_tomcat_jdbc_8_5_27.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_tomcat_tomcat_juli_8_5_27.xml b/.idea/libraries/Maven__org_apache_tomcat_tomcat_juli_8_5_27.xml index f9d95fa..1aa9c5d 100644 --- a/.idea/libraries/Maven__org_apache_tomcat_tomcat_juli_8_5_27.xml +++ b/.idea/libraries/Maven__org_apache_tomcat_tomcat_juli_8_5_27.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_aspectj_aspectjweaver_1_8_13.xml b/.idea/libraries/Maven__org_aspectj_aspectjweaver_1_8_13.xml index 88aede3..5c403bd 100644 --- a/.idea/libraries/Maven__org_aspectj_aspectjweaver_1_8_13.xml +++ b/.idea/libraries/Maven__org_aspectj_aspectjweaver_1_8_13.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_assertj_assertj_core_2_6_0.xml b/.idea/libraries/Maven__org_assertj_assertj_core_2_6_0.xml index 04bab7d..e4e5ea2 100644 --- a/.idea/libraries/Maven__org_assertj_assertj_core_2_6_0.xml +++ b/.idea/libraries/Maven__org_assertj_assertj_core_2_6_0.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_assertj_assertj_core_3_9_1.xml b/.idea/libraries/Maven__org_assertj_assertj_core_3_9_1.xml index 5eb907d..443d739 100644 --- a/.idea/libraries/Maven__org_assertj_assertj_core_3_9_1.xml +++ b/.idea/libraries/Maven__org_assertj_assertj_core_3_9_1.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_codehaus_jackson_jackson_core_asl_1_9_13.xml b/.idea/libraries/Maven__org_codehaus_jackson_jackson_core_asl_1_9_13.xml index 37f3705..d243e17 100644 --- a/.idea/libraries/Maven__org_codehaus_jackson_jackson_core_asl_1_9_13.xml +++ b/.idea/libraries/Maven__org_codehaus_jackson_jackson_core_asl_1_9_13.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_codehaus_jackson_jackson_mapper_asl_1_9_13.xml b/.idea/libraries/Maven__org_codehaus_jackson_jackson_mapper_asl_1_9_13.xml index e936c95..c37cb73 100644 --- a/.idea/libraries/Maven__org_codehaus_jackson_jackson_mapper_asl_1_9_13.xml +++ b/.idea/libraries/Maven__org_codehaus_jackson_jackson_mapper_asl_1_9_13.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_eclipse_jdt_ecj_3_12_3.xml b/.idea/libraries/Maven__org_eclipse_jdt_ecj_3_12_3.xml index 29ecd39..d2405e4 100644 --- a/.idea/libraries/Maven__org_eclipse_jdt_ecj_3_12_3.xml +++ b/.idea/libraries/Maven__org_eclipse_jdt_ecj_3_12_3.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_glassfish_javax_el_3_0_0.xml b/.idea/libraries/Maven__org_glassfish_javax_el_3_0_0.xml index a691350..a64201f 100644 --- a/.idea/libraries/Maven__org_glassfish_javax_el_3_0_0.xml +++ b/.idea/libraries/Maven__org_glassfish_javax_el_3_0_0.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml b/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml index 1633e4b..1364f4a 100644 --- a/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml +++ b/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_hamcrest_hamcrest_library_1_3.xml b/.idea/libraries/Maven__org_hamcrest_hamcrest_library_1_3.xml index 9b0f74b..dfe7f99 100644 --- a/.idea/libraries/Maven__org_hamcrest_hamcrest_library_1_3.xml +++ b/.idea/libraries/Maven__org_hamcrest_hamcrest_library_1_3.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_hibernate_common_hibernate_commons_annotations_5_0_1_Final.xml b/.idea/libraries/Maven__org_hibernate_common_hibernate_commons_annotations_5_0_1_Final.xml index 5f8affe..af4fc21 100644 --- a/.idea/libraries/Maven__org_hibernate_common_hibernate_commons_annotations_5_0_1_Final.xml +++ b/.idea/libraries/Maven__org_hibernate_common_hibernate_commons_annotations_5_0_1_Final.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_hibernate_hibernate_core_5_0_12_Final.xml b/.idea/libraries/Maven__org_hibernate_hibernate_core_5_0_12_Final.xml index 81ac38e..90c1ce6 100644 --- a/.idea/libraries/Maven__org_hibernate_hibernate_core_5_0_12_Final.xml +++ b/.idea/libraries/Maven__org_hibernate_hibernate_core_5_0_12_Final.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_hibernate_hibernate_entitymanager_5_0_12_Final.xml b/.idea/libraries/Maven__org_hibernate_hibernate_entitymanager_5_0_12_Final.xml index 265d105..198ce73 100644 --- a/.idea/libraries/Maven__org_hibernate_hibernate_entitymanager_5_0_12_Final.xml +++ b/.idea/libraries/Maven__org_hibernate_hibernate_entitymanager_5_0_12_Final.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_hibernate_hibernate_validator_5_3_6_Final.xml b/.idea/libraries/Maven__org_hibernate_hibernate_validator_5_3_6_Final.xml index 0524b3e..2f27b7e 100644 --- a/.idea/libraries/Maven__org_hibernate_hibernate_validator_5_3_6_Final.xml +++ b/.idea/libraries/Maven__org_hibernate_hibernate_validator_5_3_6_Final.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_hibernate_javax_persistence_hibernate_jpa_2_1_api_1_0_0_Final.xml b/.idea/libraries/Maven__org_hibernate_javax_persistence_hibernate_jpa_2_1_api_1_0_0_Final.xml index f636e13..7851871 100644 --- a/.idea/libraries/Maven__org_hibernate_javax_persistence_hibernate_jpa_2_1_api_1_0_0_Final.xml +++ b/.idea/libraries/Maven__org_hibernate_javax_persistence_hibernate_jpa_2_1_api_1_0_0_Final.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_hibernate_validator_hibernate_validator_6_0_9_Final.xml b/.idea/libraries/Maven__org_hibernate_validator_hibernate_validator_6_0_9_Final.xml index 46dec34..bd11dc7 100644 --- a/.idea/libraries/Maven__org_hibernate_validator_hibernate_validator_6_0_9_Final.xml +++ b/.idea/libraries/Maven__org_hibernate_validator_hibernate_validator_6_0_9_Final.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_javassist_javassist_3_21_0_GA.xml b/.idea/libraries/Maven__org_javassist_javassist_3_21_0_GA.xml index 477a805..5e2cd55 100644 --- a/.idea/libraries/Maven__org_javassist_javassist_3_21_0_GA.xml +++ b/.idea/libraries/Maven__org_javassist_javassist_3_21_0_GA.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_jboss_jandex_2_0_0_Final.xml b/.idea/libraries/Maven__org_jboss_jandex_2_0_0_Final.xml index d82c9c7..d0ebe14 100644 --- a/.idea/libraries/Maven__org_jboss_jandex_2_0_0_Final.xml +++ b/.idea/libraries/Maven__org_jboss_jandex_2_0_0_Final.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_jboss_logging_jboss_logging_3_3_1_Final.xml b/.idea/libraries/Maven__org_jboss_logging_jboss_logging_3_3_1_Final.xml index a0bd468..2aef18c 100644 --- a/.idea/libraries/Maven__org_jboss_logging_jboss_logging_3_3_1_Final.xml +++ b/.idea/libraries/Maven__org_jboss_logging_jboss_logging_3_3_1_Final.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_jboss_logging_jboss_logging_3_3_2_Final.xml b/.idea/libraries/Maven__org_jboss_logging_jboss_logging_3_3_2_Final.xml index 432bc15..5fbd537 100644 --- a/.idea/libraries/Maven__org_jboss_logging_jboss_logging_3_3_2_Final.xml +++ b/.idea/libraries/Maven__org_jboss_logging_jboss_logging_3_3_2_Final.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_jboss_spec_javax_annotation_jboss_annotations_api_1_2_spec_1_0_0_Final.xml b/.idea/libraries/Maven__org_jboss_spec_javax_annotation_jboss_annotations_api_1_2_spec_1_0_0_Final.xml index ac6446f..2e67009 100644 --- a/.idea/libraries/Maven__org_jboss_spec_javax_annotation_jboss_annotations_api_1_2_spec_1_0_0_Final.xml +++ b/.idea/libraries/Maven__org_jboss_spec_javax_annotation_jboss_annotations_api_1_2_spec_1_0_0_Final.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_jboss_spec_javax_websocket_jboss_websocket_api_1_1_spec_1_1_0_Final.xml b/.idea/libraries/Maven__org_jboss_spec_javax_websocket_jboss_websocket_api_1_1_spec_1_1_0_Final.xml index 627e964..f4b4091 100644 --- a/.idea/libraries/Maven__org_jboss_spec_javax_websocket_jboss_websocket_api_1_1_spec_1_1_0_Final.xml +++ b/.idea/libraries/Maven__org_jboss_spec_javax_websocket_jboss_websocket_api_1_1_spec_1_1_0_Final.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_jboss_xnio_xnio_api_3_3_8_Final.xml b/.idea/libraries/Maven__org_jboss_xnio_xnio_api_3_3_8_Final.xml index bfe89dd..8ea0da7 100644 --- a/.idea/libraries/Maven__org_jboss_xnio_xnio_api_3_3_8_Final.xml +++ b/.idea/libraries/Maven__org_jboss_xnio_xnio_api_3_3_8_Final.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_jboss_xnio_xnio_nio_3_3_8_Final.xml b/.idea/libraries/Maven__org_jboss_xnio_xnio_nio_3_3_8_Final.xml index 8ba3633..286939d 100644 --- a/.idea/libraries/Maven__org_jboss_xnio_xnio_nio_3_3_8_Final.xml +++ b/.idea/libraries/Maven__org_jboss_xnio_xnio_nio_3_3_8_Final.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_mockito_mockito_core_1_10_19.xml b/.idea/libraries/Maven__org_mockito_mockito_core_1_10_19.xml index 87f451a..f5c03e5 100644 --- a/.idea/libraries/Maven__org_mockito_mockito_core_1_10_19.xml +++ b/.idea/libraries/Maven__org_mockito_mockito_core_1_10_19.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_mockito_mockito_core_2_15_0.xml b/.idea/libraries/Maven__org_mockito_mockito_core_2_15_0.xml index e2dbca0..ccdfadc 100644 --- a/.idea/libraries/Maven__org_mockito_mockito_core_2_15_0.xml +++ b/.idea/libraries/Maven__org_mockito_mockito_core_2_15_0.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_objenesis_objenesis_2_1.xml b/.idea/libraries/Maven__org_objenesis_objenesis_2_1.xml index 326df5f..0b48550 100644 --- a/.idea/libraries/Maven__org_objenesis_objenesis_2_1.xml +++ b/.idea/libraries/Maven__org_objenesis_objenesis_2_1.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_objenesis_objenesis_2_6.xml b/.idea/libraries/Maven__org_objenesis_objenesis_2_6.xml index 824027d..1758c1d 100644 --- a/.idea/libraries/Maven__org_objenesis_objenesis_2_6.xml +++ b/.idea/libraries/Maven__org_objenesis_objenesis_2_6.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_ow2_asm_asm_5_0_3.xml b/.idea/libraries/Maven__org_ow2_asm_asm_5_0_3.xml index eb7f5a2..2794534 100644 --- a/.idea/libraries/Maven__org_ow2_asm_asm_5_0_3.xml +++ b/.idea/libraries/Maven__org_ow2_asm_asm_5_0_3.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_ow2_asm_asm_5_0_4.xml b/.idea/libraries/Maven__org_ow2_asm_asm_5_0_4.xml index 90be6d1..0212621 100644 --- a/.idea/libraries/Maven__org_ow2_asm_asm_5_0_4.xml +++ b/.idea/libraries/Maven__org_ow2_asm_asm_5_0_4.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_skyscreamer_jsonassert_1_4_0.xml b/.idea/libraries/Maven__org_skyscreamer_jsonassert_1_4_0.xml index e3ad2fd..e9b43d0 100644 --- a/.idea/libraries/Maven__org_skyscreamer_jsonassert_1_4_0.xml +++ b/.idea/libraries/Maven__org_skyscreamer_jsonassert_1_4_0.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_skyscreamer_jsonassert_1_5_0.xml b/.idea/libraries/Maven__org_skyscreamer_jsonassert_1_5_0.xml index 93bb393..96fe96d 100644 --- a/.idea/libraries/Maven__org_skyscreamer_jsonassert_1_5_0.xml +++ b/.idea/libraries/Maven__org_skyscreamer_jsonassert_1_5_0.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_slf4j_jcl_over_slf4j_1_7_25.xml b/.idea/libraries/Maven__org_slf4j_jcl_over_slf4j_1_7_25.xml index 470798a..c412093 100644 --- a/.idea/libraries/Maven__org_slf4j_jcl_over_slf4j_1_7_25.xml +++ b/.idea/libraries/Maven__org_slf4j_jcl_over_slf4j_1_7_25.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_slf4j_jul_to_slf4j_1_7_25.xml b/.idea/libraries/Maven__org_slf4j_jul_to_slf4j_1_7_25.xml index 03e23a6..f32ce01 100644 --- a/.idea/libraries/Maven__org_slf4j_jul_to_slf4j_1_7_25.xml +++ b/.idea/libraries/Maven__org_slf4j_jul_to_slf4j_1_7_25.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_slf4j_log4j_over_slf4j_1_7_25.xml b/.idea/libraries/Maven__org_slf4j_log4j_over_slf4j_1_7_25.xml index 765db5a..c377983 100644 --- a/.idea/libraries/Maven__org_slf4j_log4j_over_slf4j_1_7_25.xml +++ b/.idea/libraries/Maven__org_slf4j_log4j_over_slf4j_1_7_25.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_25.xml b/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_25.xml index 162f57a..74212aa 100644 --- a/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_25.xml +++ b/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_25.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_1_5_10_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_1_5_10_RELEASE.xml index d85604a..c1c2c3e 100644 --- a/.idea/libraries/Maven__org_springframework_boot_spring_boot_1_5_10_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_1_5_10_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_2_0_2_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_2_0_2_RELEASE.xml index 0280ba2..66fa889 100644 --- a/.idea/libraries/Maven__org_springframework_boot_spring_boot_2_0_2_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_2_0_2_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_autoconfigure_1_5_10_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_autoconfigure_1_5_10_RELEASE.xml index a793d51..af86d82 100644 --- a/.idea/libraries/Maven__org_springframework_boot_spring_boot_autoconfigure_1_5_10_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_autoconfigure_1_5_10_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_autoconfigure_2_0_2_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_autoconfigure_2_0_2_RELEASE.xml index 4d3e812..33f4b7e 100644 --- a/.idea/libraries/Maven__org_springframework_boot_spring_boot_autoconfigure_2_0_2_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_autoconfigure_2_0_2_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_1_5_10_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_1_5_10_RELEASE.xml index e74481b..5ea1d2d 100644 --- a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_1_5_10_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_1_5_10_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_2_0_2_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_2_0_2_RELEASE.xml index 42ccd27..be9f1bd 100644 --- a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_2_0_2_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_2_0_2_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_aop_1_5_10_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_aop_1_5_10_RELEASE.xml index 437a417..2c765ab 100644 --- a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_aop_1_5_10_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_aop_1_5_10_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_data_jpa_1_5_10_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_data_jpa_1_5_10_RELEASE.xml index 6469e1c..2339aef 100644 --- a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_data_jpa_1_5_10_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_data_jpa_1_5_10_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_data_redis_1_5_10_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_data_redis_1_5_10_RELEASE.xml index df672ef..d41329e 100644 --- a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_data_redis_1_5_10_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_data_redis_1_5_10_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_jdbc_1_5_10_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_jdbc_1_5_10_RELEASE.xml index 3795cb4..6307320 100644 --- a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_jdbc_1_5_10_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_jdbc_1_5_10_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_json_2_0_2_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_json_2_0_2_RELEASE.xml index 5607597..330b015 100644 --- a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_json_2_0_2_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_json_2_0_2_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_logging_1_5_10_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_logging_1_5_10_RELEASE.xml index e89f0ee..53b7dde 100644 --- a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_logging_1_5_10_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_logging_1_5_10_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_logging_2_0_2_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_logging_2_0_2_RELEASE.xml index facc765..3363a96 100644 --- a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_logging_2_0_2_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_logging_2_0_2_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_security_1_5_10_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_security_1_5_10_RELEASE.xml index c533e3c..144c865 100644 --- a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_security_1_5_10_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_security_1_5_10_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_test_1_5_10_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_test_1_5_10_RELEASE.xml index f70cd2d..1b30ec8 100644 --- a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_test_1_5_10_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_test_1_5_10_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_test_2_0_2_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_test_2_0_2_RELEASE.xml index afbacef..38f53c1 100644 --- a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_test_2_0_2_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_test_2_0_2_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_tomcat_1_5_10_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_tomcat_1_5_10_RELEASE.xml index 38214ad..bf89673 100644 --- a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_tomcat_1_5_10_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_tomcat_1_5_10_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_tomcat_2_0_2_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_tomcat_2_0_2_RELEASE.xml index bde27eb..fd789ec 100644 --- a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_tomcat_2_0_2_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_tomcat_2_0_2_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_undertow_1_5_10_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_undertow_1_5_10_RELEASE.xml index 0aaf3b1..ed6ef4a 100644 --- a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_undertow_1_5_10_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_undertow_1_5_10_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_web_1_5_10_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_web_1_5_10_RELEASE.xml index 2531401..982db62 100644 --- a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_web_1_5_10_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_web_1_5_10_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_web_2_0_2_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_web_2_0_2_RELEASE.xml index cb9a51b..9435100 100644 --- a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_web_2_0_2_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_web_2_0_2_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_websocket_2_0_2_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_websocket_2_0_2_RELEASE.xml index f21a278..3648bd8 100644 --- a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_websocket_2_0_2_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_websocket_2_0_2_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_1_5_10_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_1_5_10_RELEASE.xml index 0cbee00..5726fac 100644 --- a/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_1_5_10_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_1_5_10_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_2_0_2_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_2_0_2_RELEASE.xml index feb79c4..bb4fedd 100644 --- a/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_2_0_2_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_2_0_2_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_autoconfigure_1_5_10_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_autoconfigure_1_5_10_RELEASE.xml index a166460..156966d 100644 --- a/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_autoconfigure_1_5_10_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_autoconfigure_1_5_10_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_autoconfigure_2_0_2_RELEASE.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_autoconfigure_2_0_2_RELEASE.xml index ef7152d..92bc780 100644 --- a/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_autoconfigure_2_0_2_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_autoconfigure_2_0_2_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_data_spring_data_commons_1_13_10_RELEASE.xml b/.idea/libraries/Maven__org_springframework_data_spring_data_commons_1_13_10_RELEASE.xml index 2104e7d..9314774 100644 --- a/.idea/libraries/Maven__org_springframework_data_spring_data_commons_1_13_10_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_data_spring_data_commons_1_13_10_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_data_spring_data_jpa_1_11_10_RELEASE.xml b/.idea/libraries/Maven__org_springframework_data_spring_data_jpa_1_11_10_RELEASE.xml index b393add..23d1c9e 100644 --- a/.idea/libraries/Maven__org_springframework_data_spring_data_jpa_1_11_10_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_data_spring_data_jpa_1_11_10_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_data_spring_data_keyvalue_1_2_10_RELEASE.xml b/.idea/libraries/Maven__org_springframework_data_spring_data_keyvalue_1_2_10_RELEASE.xml index be92183..ff60847 100644 --- a/.idea/libraries/Maven__org_springframework_data_spring_data_keyvalue_1_2_10_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_data_spring_data_keyvalue_1_2_10_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_data_spring_data_redis_1_8_10_RELEASE.xml b/.idea/libraries/Maven__org_springframework_data_spring_data_redis_1_8_10_RELEASE.xml index 420b6eb..b096915 100644 --- a/.idea/libraries/Maven__org_springframework_data_spring_data_redis_1_8_10_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_data_spring_data_redis_1_8_10_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_security_oauth_spring_security_oauth2_2_0_14_RELEASE.xml b/.idea/libraries/Maven__org_springframework_security_oauth_spring_security_oauth2_2_0_14_RELEASE.xml index dcb1001..4908a3c 100644 --- a/.idea/libraries/Maven__org_springframework_security_oauth_spring_security_oauth2_2_0_14_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_security_oauth_spring_security_oauth2_2_0_14_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_security_spring_security_config_4_2_4_RELEASE.xml b/.idea/libraries/Maven__org_springframework_security_spring_security_config_4_2_4_RELEASE.xml index 23805f7..747d588 100644 --- a/.idea/libraries/Maven__org_springframework_security_spring_security_config_4_2_4_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_security_spring_security_config_4_2_4_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_security_spring_security_core_4_2_4_RELEASE.xml b/.idea/libraries/Maven__org_springframework_security_spring_security_core_4_2_4_RELEASE.xml index a6b5f8d..cce1026 100644 --- a/.idea/libraries/Maven__org_springframework_security_spring_security_core_4_2_4_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_security_spring_security_core_4_2_4_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_security_spring_security_web_4_2_4_RELEASE.xml b/.idea/libraries/Maven__org_springframework_security_spring_security_web_4_2_4_RELEASE.xml index b6d15b0..6e7c033 100644 --- a/.idea/libraries/Maven__org_springframework_security_spring_security_web_4_2_4_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_security_spring_security_web_4_2_4_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_aop_4_3_14_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_aop_4_3_14_RELEASE.xml index 33d02d0..27f8836 100644 --- a/.idea/libraries/Maven__org_springframework_spring_aop_4_3_14_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_spring_aop_4_3_14_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_aop_5_0_6_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_aop_5_0_6_RELEASE.xml index 2e5e0cd..cf6d6a3 100644 --- a/.idea/libraries/Maven__org_springframework_spring_aop_5_0_6_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_spring_aop_5_0_6_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_aspects_4_3_14_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_aspects_4_3_14_RELEASE.xml index 9038a9d..74d6c82 100644 --- a/.idea/libraries/Maven__org_springframework_spring_aspects_4_3_14_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_spring_aspects_4_3_14_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_beans_4_3_14_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_beans_4_3_14_RELEASE.xml index cc32c79..1e22c24 100644 --- a/.idea/libraries/Maven__org_springframework_spring_beans_4_3_14_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_spring_beans_4_3_14_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_beans_5_0_6_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_beans_5_0_6_RELEASE.xml index 60c94f9..c465436 100644 --- a/.idea/libraries/Maven__org_springframework_spring_beans_5_0_6_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_spring_beans_5_0_6_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_context_4_3_14_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_context_4_3_14_RELEASE.xml index 2615ead..a9d03a5 100644 --- a/.idea/libraries/Maven__org_springframework_spring_context_4_3_14_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_spring_context_4_3_14_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_context_5_0_6_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_context_5_0_6_RELEASE.xml index 0228987..bf3892b 100644 --- a/.idea/libraries/Maven__org_springframework_spring_context_5_0_6_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_spring_context_5_0_6_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_context_support_4_3_14_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_context_support_4_3_14_RELEASE.xml index a8bfca0..37097db 100644 --- a/.idea/libraries/Maven__org_springframework_spring_context_support_4_3_14_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_spring_context_support_4_3_14_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_core_4_3_14_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_core_4_3_14_RELEASE.xml index 767a379..3a3838e 100644 --- a/.idea/libraries/Maven__org_springframework_spring_core_4_3_14_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_spring_core_4_3_14_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_core_5_0_6_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_core_5_0_6_RELEASE.xml index 5aa46ab..57b6ca3 100644 --- a/.idea/libraries/Maven__org_springframework_spring_core_5_0_6_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_spring_core_5_0_6_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_expression_4_3_14_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_expression_4_3_14_RELEASE.xml index 0c84763..283861f 100644 --- a/.idea/libraries/Maven__org_springframework_spring_expression_4_3_14_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_spring_expression_4_3_14_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_expression_5_0_6_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_expression_5_0_6_RELEASE.xml index be16e90..d3a4a22 100644 --- a/.idea/libraries/Maven__org_springframework_spring_expression_5_0_6_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_spring_expression_5_0_6_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_jcl_5_0_6_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_jcl_5_0_6_RELEASE.xml index 1af17f4..8435f3a 100644 --- a/.idea/libraries/Maven__org_springframework_spring_jcl_5_0_6_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_spring_jcl_5_0_6_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_jdbc_4_3_14_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_jdbc_4_3_14_RELEASE.xml index d1bf014..d20124b 100644 --- a/.idea/libraries/Maven__org_springframework_spring_jdbc_4_3_14_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_spring_jdbc_4_3_14_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_messaging_5_0_6_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_messaging_5_0_6_RELEASE.xml index 40f6802..812a221 100644 --- a/.idea/libraries/Maven__org_springframework_spring_messaging_5_0_6_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_spring_messaging_5_0_6_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_orm_4_3_14_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_orm_4_3_14_RELEASE.xml index 994e939..cefc72a 100644 --- a/.idea/libraries/Maven__org_springframework_spring_orm_4_3_14_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_spring_orm_4_3_14_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_oxm_4_3_14_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_oxm_4_3_14_RELEASE.xml index dc2d6f7..db84aec 100644 --- a/.idea/libraries/Maven__org_springframework_spring_oxm_4_3_14_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_spring_oxm_4_3_14_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_test_4_3_14_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_test_4_3_14_RELEASE.xml index ddb787b..0f7b68d 100644 --- a/.idea/libraries/Maven__org_springframework_spring_test_4_3_14_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_spring_test_4_3_14_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_test_5_0_6_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_test_5_0_6_RELEASE.xml index 92f31f2..8c4db10 100644 --- a/.idea/libraries/Maven__org_springframework_spring_test_5_0_6_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_spring_test_5_0_6_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_tx_4_3_14_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_tx_4_3_14_RELEASE.xml index 62076ed..a48087a 100644 --- a/.idea/libraries/Maven__org_springframework_spring_tx_4_3_14_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_spring_tx_4_3_14_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_web_4_3_14_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_web_4_3_14_RELEASE.xml index bddfa80..837ecd4 100644 --- a/.idea/libraries/Maven__org_springframework_spring_web_4_3_14_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_spring_web_4_3_14_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_web_5_0_6_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_web_5_0_6_RELEASE.xml index 8303a6b..e904f06 100644 --- a/.idea/libraries/Maven__org_springframework_spring_web_5_0_6_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_spring_web_5_0_6_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_webmvc_4_3_14_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_webmvc_4_3_14_RELEASE.xml index cfc5d99..e02367d 100644 --- a/.idea/libraries/Maven__org_springframework_spring_webmvc_4_3_14_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_spring_webmvc_4_3_14_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_webmvc_5_0_6_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_webmvc_5_0_6_RELEASE.xml index c1a58a7..5c71145 100644 --- a/.idea/libraries/Maven__org_springframework_spring_webmvc_5_0_6_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_spring_webmvc_5_0_6_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_websocket_5_0_6_RELEASE.xml b/.idea/libraries/Maven__org_springframework_spring_websocket_5_0_6_RELEASE.xml index d2c643a..f2e89b7 100644 --- a/.idea/libraries/Maven__org_springframework_spring_websocket_5_0_6_RELEASE.xml +++ b/.idea/libraries/Maven__org_springframework_spring_websocket_5_0_6_RELEASE.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_xmlunit_xmlunit_core_2_5_1.xml b/.idea/libraries/Maven__org_xmlunit_xmlunit_core_2_5_1.xml index a346198..fec8bf8 100644 --- a/.idea/libraries/Maven__org_xmlunit_xmlunit_core_2_5_1.xml +++ b/.idea/libraries/Maven__org_xmlunit_xmlunit_core_2_5_1.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_yaml_snakeyaml_1_17.xml b/.idea/libraries/Maven__org_yaml_snakeyaml_1_17.xml index bf072ad..8e1f138 100644 --- a/.idea/libraries/Maven__org_yaml_snakeyaml_1_17.xml +++ b/.idea/libraries/Maven__org_yaml_snakeyaml_1_17.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_yaml_snakeyaml_1_19.xml b/.idea/libraries/Maven__org_yaml_snakeyaml_1_19.xml index 8a53e93..07b5aa9 100644 --- a/.idea/libraries/Maven__org_yaml_snakeyaml_1_19.xml +++ b/.idea/libraries/Maven__org_yaml_snakeyaml_1_19.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/libraries/Maven__redis_clients_jedis_2_9_0.xml b/.idea/libraries/Maven__redis_clients_jedis_2_9_0.xml index e5d7e69..7916a1a 100644 --- a/.idea/libraries/Maven__redis_clients_jedis_2_9_0.xml +++ b/.idea/libraries/Maven__redis_clients_jedis_2_9_0.xml @@ -1,13 +1,13 @@ - + - + - + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 65e4fe9..3b90ffe 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -16,6 +16,8 @@ diff --git a/.idea/modules.xml b/.idea/modules.xml index 5ccbaa3..e15153a 100644 --- a/.idea/modules.xml +++ b/.idea/modules.xml @@ -6,6 +6,8 @@ + + diff --git a/springbott-hibernate-interceptoer/pom.xml b/springboot-hibernate-interceptoer/pom.xml similarity index 97% rename from springbott-hibernate-interceptoer/pom.xml rename to springboot-hibernate-interceptoer/pom.xml index 8b61188..a67fd6e 100644 --- a/springbott-hibernate-interceptoer/pom.xml +++ b/springboot-hibernate-interceptoer/pom.xml @@ -9,7 +9,7 @@ 4.0.0 - springbott-hibernate-interceptoer + springboot-hibernate-interceptoer diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/SpringBootHibernateAditInterceptorApplication.java b/springboot-hibernate-interceptoer/src/main/java/com/vesus/SpringBootHibernateAditInterceptorApplication.java similarity index 97% rename from springbott-hibernate-interceptoer/src/main/java/com/vesus/SpringBootHibernateAditInterceptorApplication.java rename to springboot-hibernate-interceptoer/src/main/java/com/vesus/SpringBootHibernateAditInterceptorApplication.java index 05bbf3e..e816720 100644 --- a/springbott-hibernate-interceptoer/src/main/java/com/vesus/SpringBootHibernateAditInterceptorApplication.java +++ b/springboot-hibernate-interceptoer/src/main/java/com/vesus/SpringBootHibernateAditInterceptorApplication.java @@ -1,6 +1,5 @@ package com.vesus; -import com.vesus.audit.AuditOperationRecord; import com.vesus.audit.AuditOperationRecordAware; import com.vesus.audit.AuditOperationRecordAwareImpl; import com.vesus.listener.CustomAuditor; diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditEntityAlias.java b/springboot-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditEntityAlias.java similarity index 100% rename from springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditEntityAlias.java rename to springboot-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditEntityAlias.java diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditFieldAlias.java b/springboot-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditFieldAlias.java similarity index 100% rename from springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditFieldAlias.java rename to springboot-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditFieldAlias.java diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditModifyFieldObject.java b/springboot-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditModifyFieldObject.java similarity index 100% rename from springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditModifyFieldObject.java rename to springboot-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditModifyFieldObject.java diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditOperationRecord.java b/springboot-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditOperationRecord.java similarity index 100% rename from springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditOperationRecord.java rename to springboot-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditOperationRecord.java diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditOperationRecordAware.java b/springboot-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditOperationRecordAware.java similarity index 100% rename from springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditOperationRecordAware.java rename to springboot-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditOperationRecordAware.java diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditOperationRecordAwareImpl.java b/springboot-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditOperationRecordAwareImpl.java similarity index 100% rename from springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditOperationRecordAwareImpl.java rename to springboot-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditOperationRecordAwareImpl.java diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditOperationType.java b/springboot-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditOperationType.java similarity index 100% rename from springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditOperationType.java rename to springboot-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditOperationType.java diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditPrimaryID.java b/springboot-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditPrimaryID.java similarity index 100% rename from springbott-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditPrimaryID.java rename to springboot-hibernate-interceptoer/src/main/java/com/vesus/audit/AuditPrimaryID.java diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/controller/TUserController.java b/springboot-hibernate-interceptoer/src/main/java/com/vesus/controller/TUserController.java similarity index 100% rename from springbott-hibernate-interceptoer/src/main/java/com/vesus/controller/TUserController.java rename to springboot-hibernate-interceptoer/src/main/java/com/vesus/controller/TUserController.java diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/domain/AuditRecordLog.java b/springboot-hibernate-interceptoer/src/main/java/com/vesus/domain/AuditRecordLog.java similarity index 98% rename from springbott-hibernate-interceptoer/src/main/java/com/vesus/domain/AuditRecordLog.java rename to springboot-hibernate-interceptoer/src/main/java/com/vesus/domain/AuditRecordLog.java index 5459ebb..896f66c 100644 --- a/springbott-hibernate-interceptoer/src/main/java/com/vesus/domain/AuditRecordLog.java +++ b/springboot-hibernate-interceptoer/src/main/java/com/vesus/domain/AuditRecordLog.java @@ -1,7 +1,6 @@ package com.vesus.domain; -import javax.persistence.*; @Entity @Table(name = "t_audit_record_log") public class AuditRecordLog { diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/domain/CustomerRevisionEntity.java b/springboot-hibernate-interceptoer/src/main/java/com/vesus/domain/CustomerRevisionEntity.java similarity index 97% rename from springbott-hibernate-interceptoer/src/main/java/com/vesus/domain/CustomerRevisionEntity.java rename to springboot-hibernate-interceptoer/src/main/java/com/vesus/domain/CustomerRevisionEntity.java index e38af58..7b27c14 100644 --- a/springbott-hibernate-interceptoer/src/main/java/com/vesus/domain/CustomerRevisionEntity.java +++ b/springboot-hibernate-interceptoer/src/main/java/com/vesus/domain/CustomerRevisionEntity.java @@ -6,8 +6,6 @@ import org.hibernate.envers.RevisionEntity; import org.hibernate.envers.RevisionNumber; import org.hibernate.envers.RevisionTimestamp; -import javax.persistence.*; - @Entity @Table(name = "t_revisions_info") diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/domain/TUser.java b/springboot-hibernate-interceptoer/src/main/java/com/vesus/domain/TUser.java similarity index 99% rename from springbott-hibernate-interceptoer/src/main/java/com/vesus/domain/TUser.java rename to springboot-hibernate-interceptoer/src/main/java/com/vesus/domain/TUser.java index dbf1187..379ffb3 100644 --- a/springbott-hibernate-interceptoer/src/main/java/com/vesus/domain/TUser.java +++ b/springboot-hibernate-interceptoer/src/main/java/com/vesus/domain/TUser.java @@ -9,7 +9,6 @@ import org.springframework.data.annotation.CreatedBy; import org.springframework.data.annotation.LastModifiedBy; import org.springframework.data.annotation.LastModifiedDate; -import javax.persistence.*; import java.io.Serializable; diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/listener/CustomAuditListener.java b/springboot-hibernate-interceptoer/src/main/java/com/vesus/listener/CustomAuditListener.java similarity index 100% rename from springbott-hibernate-interceptoer/src/main/java/com/vesus/listener/CustomAuditListener.java rename to springboot-hibernate-interceptoer/src/main/java/com/vesus/listener/CustomAuditListener.java diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/listener/CustomAuditor.java b/springboot-hibernate-interceptoer/src/main/java/com/vesus/listener/CustomAuditor.java similarity index 100% rename from springbott-hibernate-interceptoer/src/main/java/com/vesus/listener/CustomAuditor.java rename to springboot-hibernate-interceptoer/src/main/java/com/vesus/listener/CustomAuditor.java diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/listener/CustomInterceptor.java b/springboot-hibernate-interceptoer/src/main/java/com/vesus/listener/CustomInterceptor.java similarity index 100% rename from springbott-hibernate-interceptoer/src/main/java/com/vesus/listener/CustomInterceptor.java rename to springboot-hibernate-interceptoer/src/main/java/com/vesus/listener/CustomInterceptor.java diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/listener/CustomRevisionListener.java b/springboot-hibernate-interceptoer/src/main/java/com/vesus/listener/CustomRevisionListener.java similarity index 100% rename from springbott-hibernate-interceptoer/src/main/java/com/vesus/listener/CustomRevisionListener.java rename to springboot-hibernate-interceptoer/src/main/java/com/vesus/listener/CustomRevisionListener.java diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/repository/AuditRecordLogRepository.java b/springboot-hibernate-interceptoer/src/main/java/com/vesus/repository/AuditRecordLogRepository.java similarity index 100% rename from springbott-hibernate-interceptoer/src/main/java/com/vesus/repository/AuditRecordLogRepository.java rename to springboot-hibernate-interceptoer/src/main/java/com/vesus/repository/AuditRecordLogRepository.java diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/repository/TUserRepository.java b/springboot-hibernate-interceptoer/src/main/java/com/vesus/repository/TUserRepository.java similarity index 100% rename from springbott-hibernate-interceptoer/src/main/java/com/vesus/repository/TUserRepository.java rename to springboot-hibernate-interceptoer/src/main/java/com/vesus/repository/TUserRepository.java diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/service/AuditRecordLogService.java b/springboot-hibernate-interceptoer/src/main/java/com/vesus/service/AuditRecordLogService.java similarity index 100% rename from springbott-hibernate-interceptoer/src/main/java/com/vesus/service/AuditRecordLogService.java rename to springboot-hibernate-interceptoer/src/main/java/com/vesus/service/AuditRecordLogService.java diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/service/TUserService.java b/springboot-hibernate-interceptoer/src/main/java/com/vesus/service/TUserService.java similarity index 100% rename from springbott-hibernate-interceptoer/src/main/java/com/vesus/service/TUserService.java rename to springboot-hibernate-interceptoer/src/main/java/com/vesus/service/TUserService.java diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/service/imp/AuditRecordLogServiceImpl.java b/springboot-hibernate-interceptoer/src/main/java/com/vesus/service/imp/AuditRecordLogServiceImpl.java similarity index 100% rename from springbott-hibernate-interceptoer/src/main/java/com/vesus/service/imp/AuditRecordLogServiceImpl.java rename to springboot-hibernate-interceptoer/src/main/java/com/vesus/service/imp/AuditRecordLogServiceImpl.java diff --git a/springbott-hibernate-interceptoer/src/main/java/com/vesus/service/imp/TUserServiceImpl.java b/springboot-hibernate-interceptoer/src/main/java/com/vesus/service/imp/TUserServiceImpl.java similarity index 100% rename from springbott-hibernate-interceptoer/src/main/java/com/vesus/service/imp/TUserServiceImpl.java rename to springboot-hibernate-interceptoer/src/main/java/com/vesus/service/imp/TUserServiceImpl.java diff --git a/springbott-hibernate-interceptoer/src/main/resources/application.properties b/springboot-hibernate-interceptoer/src/main/resources/application.properties similarity index 100% rename from springbott-hibernate-interceptoer/src/main/resources/application.properties rename to springboot-hibernate-interceptoer/src/main/resources/application.properties -- Gitee From e50153a0984afbe49796889dfa02a7ef8e269b00 Mon Sep 17 00:00:00 2001 From: wuxia Date: Sat, 30 Jun 2018 14:37:47 +0800 Subject: [PATCH 5/5] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BF=BD=E7=95=A5?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 90230ec..7aa14f5 100644 --- a/.gitignore +++ b/.gitignore @@ -27,4 +27,4 @@ LOG_PATH_IS_UNDEFINED/ ### customer ### *.log *.gitignore -LOG_PATH_IS_UNDEFINED/ \ No newline at end of file +/.idea/* -- Gitee