본문 바로가기

JPA8

[JPA] Creative-stylish-portfolio (블로그 테마) 연습 예제 stylish-portfolio easy_thema Blog 연습 예제 https://startbootstrap.com/theme/creative 기본 설정 # 설치 패키지 # 1) 메뉴 라이브러리 설치 npm i react-router-dom npm i @types/react-router-dom # 2) 벡엔드 연동 라이브러리 설치 npm i axios # 3) pre css 컴파일러 : sass npm i sass # 4) Material Page component 업그레이드 # 과거 v4 -> v5 변경 설치 npm i @mui/material @emotion/react @emotion/styled # 4-1) 소스에서 임포트 사용법 : import Pagination from '@mui/mater.. 2023. 11. 3.
[JPA] 벡엔드 (02_SimpleDMS_Page) 반응형 게시판 벡엔드 순서 ReplyBoard.java -> ReplyBoardRepository.java-> ReplyBoardDto -> ReplyBoardService.java -> ReplyBoardController.java ReplyBoard.java package com.example.simpledms.model.entity.normal; import com.example.simpledms.model.common.BaseTimeEntity; import lombok.*; import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.SQLD.. 2023. 11. 2.
[JPA] 프론트엔드 (02_SimpleDMS_Page) 반응형 게시판 플러그인 설치 CamelCase 단축키 (shift + alt + u) 프론트 ReplyBoardList.tsx -> app.tsx -> IReplyBoard.ts(벡엔드의 schema.sql 폴더 참고) -> ReplyBoardService.ts ReplyBoardList.tsx // ReplyBoardList.tsx : rfce import React, { useEffect, useState } from "react"; import TitleCom from "../../../components/common/TitleCom"; import { Link } from "react-router-dom"; import IReplyBoard from "../../../types/normal/IReplyBoard.. 2023. 11. 1.
[JPA] Pilot Project 2 https://startbootstrap.com/ 무료 템플릿 다운 사용한 툴 // # 설치 패키지 # 1) 메뉴 라이브러리 설치 npm i react-router-dom npm i @types/react-router-dom // # 2) 벡엔드 연동 라이브러리 설치 npm i axios # 3) pre css 컴파일러 : sass npm i sass # 4) Material Page component 업그레이드 # 과거 v4 -> v5 변경 설치 npm i @mui/material @emotion/react @emotion/styled # 4-1) 소스에서 임포트 사용법 : import Pagination from '@mui/material/Pagination'; # 5) typescript jquer.. 2023. 10. 31.
[JPA] 연관관계 매핑 정리 복습 https://shins99.tistory.com/113 [JPA] 양방향과 단방향 매핑, 연관관계의 주인(mappedBy) 복습 http://shins99.tistory.com/112 [JPA] 기본 키(primary key)와 매핑 복습 https://shins99.tistory.com/111 [Spring Boot] 페이징(paging) 복습 https://shins99.tistory.com/109 [JPA] 영속성 컨텍스트 영속성 컨텍스트란? 영속성 shins99.tistory.com @ManyToOne 다대일 (N : 1) 매핑 - 연관관계 매핑 시 가장 많이 사용하는 매핑 방법 - 다대일은 외래키(FK)를 갖고 있는 "다"쪽이 연관관계의 주인 단방향 매핑 @Entity public cla.. 2023. 10. 25.
[JPA] 기본 키(primary key)와 매핑 복습 https://shins99.tistory.com/111 [Spring Boot] 페이징(paging) 복습 https://shins99.tistory.com/109 [JPA] 영속성 컨텍스트 영속성 컨텍스트란? 영속성 컨텍스트는 엔티티를 영구 저장하는 환경이라는 뜻이다. 영속성 컨텍스트는 애플리케이션과 DB 사이에서 객체를 shins99.tistory.com 기본 키(Primary key)? - 주 키 또는 프라이머리 키라고 하며, 관계형 데이터베이스에서 레코드의 식별자로 가장 적합한 것으로 선택, 정의된 후보 키 기본키(primary key) 매핑하는 방법 - 총 2가지로 직접 할당과 자동 생성이 존재 직접 할당 : @Id 어노테이션만 사용하여 Id값을 직접할당 자동 생성 : @Id와 @Gene.. 2023. 10. 23.