Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE-42] MANUFACTURER entity 구현 #55

Merged
merged 1 commit into from
Oct 21, 2023
Merged
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.example.betteriter.bo_domain.menufacturer.controller;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RequestMapping("/manufacturer")
@RequiredArgsConstructor
@RestController
public class ManufacturerController {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package com.example.betteriter.bo_domain.menufacturer.domain;


import com.example.betteriter.global.common.entity.BaseEntity;
import lombok.*;
import lombok.extern.slf4j.Slf4j;

import javax.persistence.*;

@Slf4j
@Getter
@Builder
@AllArgsConstructor
@NoArgsConstructor(access = AccessLevel.PROTECTED)
@Entity(name = "MANUFACTURER")
public class Manufacturer extends BaseEntity {

@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;

@Column(name = "co_name", nullable = false, unique = true)
private String coName;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.example.betteriter.bo_domain.menufacturer.dto;

public class ManufacturerResponse {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.example.betteriter.bo_domain.menufacturer.exception;

import com.example.betteriter.global.error.exception.ErrorCode;
import com.example.betteriter.global.error.exception.GeneralException;

public class ManufacturerHandler extends GeneralException {

public ManufacturerHandler(ErrorCode errorCode) {
super(errorCode);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.example.betteriter.bo_domain.menufacturer.repository;

import com.example.betteriter.bo_domain.menufacturer.domain.Manufacturer;
import org.springframework.data.jpa.repository.JpaRepository;

public interface ManufacturerRepository extends JpaRepository<Manufacturer, Long> {

}