Переименовал

This commit is contained in:
Mark Struchkov 2019-01-10 01:11:19 +03:00
parent d9a7e09e22
commit b79c3c7cfe
28 changed files with 70 additions and 69 deletions

View File

@ -4,7 +4,9 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>consultant-core</artifactId>
<groupId>org.sadtech.autoresponder</groupId>
<artifactId>core</artifactId>
<version>0.1-SNAPSHOT</version>
<build>
<plugins>
<plugin>

View File

@ -1,4 +1,4 @@
package org.sadtech.consultant;
package org.sadtech.autoresponder;
public interface MessageSender {

View File

@ -1,4 +1,4 @@
package org.sadtech.consultant.database.entity;
package org.sadtech.autoresponder.database.entity;
import lombok.Data;

View File

@ -1,10 +1,9 @@
package org.sadtech.consultant.database.entity;
package org.sadtech.autoresponder.database.entity;
import lombok.Data;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Data

View File

@ -1,4 +1,4 @@
package org.sadtech.consultant.database.entity;
package org.sadtech.autoresponder.database.entity;
import lombok.Data;

View File

@ -1,4 +1,4 @@
package org.sadtech.consultant.database.entity;
package org.sadtech.autoresponder.database.entity;
import lombok.Data;

View File

@ -1,4 +1,4 @@
package org.sadtech.consultant.database.entity;
package org.sadtech.autoresponder.database.entity;
import lombok.Data;

View File

@ -1,6 +1,6 @@
package org.sadtech.consultant.database.repository;
package org.sadtech.autoresponder.database.repository;
import org.sadtech.consultant.database.entity.Mail;
import org.sadtech.autoresponder.database.entity.Mail;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

View File

@ -1,6 +1,6 @@
package org.sadtech.consultant.database.repository;
package org.sadtech.autoresponder.database.repository;
import org.sadtech.consultant.database.entity.NextUnit;
import org.sadtech.autoresponder.database.entity.NextUnit;
import org.springframework.data.jpa.repository.JpaRepository;
public interface NextUnitRepository extends JpaRepository<NextUnit, Long> {

View File

@ -1,6 +1,6 @@
package org.sadtech.consultant.database.repository;
package org.sadtech.autoresponder.database.repository;
import org.sadtech.consultant.database.entity.Person;
import org.sadtech.autoresponder.database.entity.Person;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

View File

@ -1,6 +1,6 @@
package org.sadtech.consultant.database.repository;
package org.sadtech.autoresponder.database.repository;
import org.sadtech.consultant.database.entity.SaveUnit;
import org.sadtech.autoresponder.database.entity.SaveUnit;
import org.springframework.data.jpa.repository.JpaRepository;
public interface SaveUnitRepositoriy extends JpaRepository<SaveUnit, Long> {

View File

@ -1,6 +1,6 @@
package org.sadtech.consultant.database.repository;
package org.sadtech.autoresponder.database.repository;
import org.sadtech.consultant.database.entity.Unit;
import org.sadtech.autoresponder.database.entity.Unit;
import org.springframework.data.jpa.repository.JpaRepository;
public interface UnitRepositoriy extends JpaRepository<Unit, Long> {

View File

@ -1,6 +1,6 @@
package org.sadtech.consultant.database.service;
package org.sadtech.autoresponder.database.service;
import org.sadtech.consultant.database.entity.Mail;
import org.sadtech.autoresponder.database.entity.Mail;
import java.util.List;

View File

@ -0,0 +1,4 @@
package org.sadtech.autoresponder.database.service;
public interface NextUnitService {
}

View File

@ -1,6 +1,6 @@
package org.sadtech.consultant.database.service;
package org.sadtech.autoresponder.database.service;
import org.sadtech.consultant.database.entity.Person;
import org.sadtech.autoresponder.database.entity.Person;
import java.util.Map;

View File

@ -0,0 +1,4 @@
package org.sadtech.autoresponder.database.service;
public interface SaveUnitService {
}

View File

@ -0,0 +1,11 @@
package org.sadtech.autoresponder.database.service;
import org.sadtech.autoresponder.database.entity.Unit;
public interface UnitService {
void addUnit(Unit unit);
void removeUnit(Long id);
}

View File

@ -1,8 +1,8 @@
package org.sadtech.consultant.database.service.impl;
package org.sadtech.autoresponder.database.service.impl;
import org.sadtech.consultant.database.entity.Mail;
import org.sadtech.consultant.database.repository.MailRepository;
import org.sadtech.consultant.database.service.MailService;
import org.sadtech.autoresponder.database.entity.Mail;
import org.sadtech.autoresponder.database.repository.MailRepository;
import org.sadtech.autoresponder.database.service.MailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

View File

@ -1,7 +1,7 @@
package org.sadtech.consultant.database.service.impl;
package org.sadtech.autoresponder.database.service.impl;
import org.sadtech.consultant.database.repository.NextUnitRepository;
import org.sadtech.consultant.database.service.NextUnitService;
import org.sadtech.autoresponder.database.repository.NextUnitRepository;
import org.sadtech.autoresponder.database.service.NextUnitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

View File

@ -1,8 +1,8 @@
package org.sadtech.consultant.database.service.impl;
package org.sadtech.autoresponder.database.service.impl;
import org.sadtech.consultant.database.repository.PersonRepository;
import org.sadtech.consultant.database.entity.Person;
import org.sadtech.consultant.database.service.PersonService;
import org.sadtech.autoresponder.database.repository.PersonRepository;
import org.sadtech.autoresponder.database.entity.Person;
import org.sadtech.autoresponder.database.service.PersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

View File

@ -1,7 +1,7 @@
package org.sadtech.consultant.database.service.impl;
package org.sadtech.autoresponder.database.service.impl;
import org.sadtech.consultant.database.repository.SaveUnitRepositoriy;
import org.sadtech.consultant.database.service.SaveUnitService;
import org.sadtech.autoresponder.database.repository.SaveUnitRepositoriy;
import org.sadtech.autoresponder.database.service.SaveUnitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

View File

@ -1,8 +1,8 @@
package org.sadtech.consultant.database.service.impl;
package org.sadtech.autoresponder.database.service.impl;
import org.sadtech.consultant.database.repository.UnitRepositoriy;
import org.sadtech.consultant.database.entity.Unit;
import org.sadtech.consultant.database.service.UnitService;
import org.sadtech.autoresponder.database.repository.UnitRepositoriy;
import org.sadtech.autoresponder.database.entity.Unit;
import org.sadtech.autoresponder.database.service.UnitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

View File

@ -1,9 +1,9 @@
package org.sadtech.consultant.processing;
package org.sadtech.autoresponder.processing;
import lombok.extern.log4j.Log4j;
import org.sadtech.consultant.database.entity.Mail;
import org.sadtech.consultant.MessageSender;
import org.sadtech.consultant.database.entity.Person;
import org.sadtech.autoresponder.database.entity.Mail;
import org.sadtech.autoresponder.MessageSender;
import org.sadtech.autoresponder.database.entity.Person;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

View File

@ -1,7 +1,7 @@
package org.sadtech.consultant.processing;
package org.sadtech.autoresponder.processing;
import org.sadtech.consultant.database.entity.Mail;
import org.sadtech.consultant.database.service.MailService;
import org.sadtech.autoresponder.database.entity.Mail;
import org.sadtech.autoresponder.database.service.MailService;
import org.springframework.stereotype.Component;
import java.util.List;

View File

@ -1,8 +1,8 @@
package org.sadtech.consultant.processing;
package org.sadtech.autoresponder.processing;
import lombok.extern.log4j.Log4j;
import org.sadtech.consultant.database.entity.Person;
import org.sadtech.consultant.database.service.PersonService;
import org.sadtech.autoresponder.database.entity.Person;
import org.sadtech.autoresponder.database.service.PersonService;
import org.springframework.stereotype.Component;
@Log4j

View File

@ -1,4 +0,0 @@
package org.sadtech.consultant.database.service;
public interface NextUnitService {
}

View File

@ -1,4 +0,0 @@
package org.sadtech.consultant.database.service;
public interface SaveUnitService {
}

View File

@ -1,11 +0,0 @@
package org.sadtech.consultant.database.service;
import org.sadtech.consultant.database.entity.Unit;
public interface UnitService {
void addUnit(Unit unit);
void removeUnit(Long id);
}