Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 0 additions & 41 deletions compose.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
rootProject.name = 'ss-multi-module'
rootProject.name = 'front-facing-wizard'

FileTree buildFiles = fileTree(rootDir) {
include 'ss-web'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ss.mod.demo.api.constant;
package ss.ff.wizard.api.constant;

import lombok.experimental.UtilityClass;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ss.mod.demo.api.constant;
package ss.ff.wizard.api.constant;

import lombok.AccessLevel;
import lombok.NoArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ss.mod.demo.api.constant;
package ss.ff.wizard.api.constant;

import lombok.AccessLevel;
import lombok.NoArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ss.mod.demo.api.constant;
package ss.ff.wizard.api.constant;

import lombok.AccessLevel;
import lombok.NoArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ss.mod.demo.api.exception;
package ss.ff.wizard.api.exception;

import lombok.Getter;
import lombok.NoArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ss.mod.demo.api.model;
package ss.ff.wizard.api.model;

import java.io.Serializable;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
* Copyright 2024 smartSense Consulting Solutions Pvt. Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ss.ff.wizard.api.model.request;

import jakarta.validation.constraints.NotEmpty;
import ss.ff.wizard.api.model.BaseModel;

/**
* Participant Request
*
* @param legalName legalName of user
* @author Sunil Kanzar
* @since 14th feb 2024
*/
public record ParticipantRequest(
@NotEmpty(message = "{please.enter.user.legal.name}") String legalName) implements BaseModel {
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package ss.mod.demo.api.model.response;
package ss.ff.wizard.api.model.response;


import com.smartsensesolutions.commons.dao.filter.FilterRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
* limitations under the License.
*/

package ss.mod.demo.api.model.response;
package ss.ff.wizard.api.model.response;

import ss.mod.demo.api.model.BaseModel;
import ss.ff.wizard.api.model.BaseModel;

public record UserResponse(String id,
String name,
Integer age,
String city,
String country) implements BaseModel {
import javax.xml.crypto.Data;

public record ParticipantResponse(String id,
String name,
Data createdDate) implements BaseModel {
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package ss.mod.demo.api.model.response;
package ss.ff.wizard.api.model.response;


import lombok.AllArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ss.mod.demo.api.utils;
package ss.ff.wizard.api.utils;

import lombok.experimental.UtilityClass;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ss.mod.demo.api.utils;
package ss.ff.wizard.api.utils;

import lombok.experimental.UtilityClass;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ss.mod.demo.api.utils;
package ss.ff.wizard.api.utils;


import ss.mod.demo.api.exception.BadDataException;
import ss.ff.wizard.api.exception.BadDataException;

import java.util.Objects;
import java.util.function.Function;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ss.mod.demo.api.validation;
package ss.ff.wizard.api.validation;

import jakarta.validation.ConstraintValidator;
import jakarta.validation.ConstraintValidatorContext;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ss.mod.demo.api.validation;
package ss.ff.wizard.api.validation;

import jakarta.validation.Constraint;
import jakarta.validation.Payload;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ss.mod.demo.api.validation;
package ss.ff.wizard.api.validation;

import jakarta.validation.Constraint;
import jakarta.validation.Payload;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ss.mod.demo.api.validation;
package ss.ff.wizard.api.validation;

import jakarta.validation.ConstraintValidator;
import jakarta.validation.ConstraintValidatorContext;
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ss.mod.demo.dao.entity;
package ss.ff.wizard.dao.entity;

import com.smartsensesolutions.commons.dao.base.BaseEntity;
import jakarta.persistence.Column;
Expand All @@ -28,6 +28,7 @@
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import java.util.Date;
import java.util.UUID;

/**
* Base auditable entity for common audit details
Expand All @@ -43,9 +44,10 @@ public class BaseAuditEntity implements BaseEntity {

@CreatedBy
@Column(name = "created_by", updatable = false)
private String createdBy;
private UUID createdBy;
@LastModifiedBy
private String updatedBy;
@Column(name = "updated_by")
private UUID updatedBy;
@LastModifiedDate
@Column(name = "updated_date")
private Date updatedDate;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,21 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ss.mod.demo.dao.entity;
package ss.ff.wizard.dao.entity;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.hibernate.annotations.GenericGenerator;

import java.util.UUID;

/**
* UserMaster Represent user
Expand All @@ -39,23 +41,14 @@
@AllArgsConstructor
@Builder
@Entity
@Table(name = "user_master")
public class UserMaster extends BaseAuditEntity {
@Table(name = "participant", schema = "master")
public class Participant extends BaseAuditEntity {

@Id
@GeneratedValue(generator = "uuid2")
@GenericGenerator(name = "uuid2", strategy = "org.hibernate.id.UUIDGenerator")
private String id;

@Column(name = "name")
private String name;

@Column(name = "age")
private Integer age;

@Column(name = "city")
private String city;
@GeneratedValue(strategy = GenerationType.UUID)
@Column(name = "id")
private UUID id;

@Column(name = "country")
private String country;
@Column(name = "legal_name")
private String legalName;
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ss.mod.demo.dao.repository;
package ss.ff.wizard.dao.repository;

import com.smartsensesolutions.commons.dao.base.BaseRepository;
import org.springframework.stereotype.Repository;
import ss.mod.demo.dao.entity.UserMaster;
import ss.ff.wizard.dao.entity.Participant;

/**
* Database operation related to {@link UserMaster}
* Database operation related to {@link Participant}
*
* @author Sunil Kanzar
* @since 14th feb 2024
*/
@Repository
public interface UserMasterRepository extends BaseRepository<UserMaster, String> {
boolean existsByName(String name);
public interface ParticipantRepository extends BaseRepository<Participant, String> {
boolean existsByLegalName(String legalName);
}
1 change: 1 addition & 0 deletions ss-service-impl/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ dependencies {
implementation 'org.springframework.cloud:spring-cloud-starter-openfeign'
implementation 'org.springframework.security:spring-security-oauth2-resource-server'
implementation 'jakarta.servlet:jakarta.servlet-api'
implementation 'org.liquibase:liquibase-core:4.25.0'

}

Expand Down
Loading
Loading