본문 바로가기
728x90

IT 이야기100

[Bean] JAVA vs Spring JAVA Bean https://en.wikipedia.org/wiki/JavaBeans JavaBeans - Wikipedia In computing based on the Java Platform, JavaBeans are classes that encapsulate many objects into a single object (the bean). They are serializable, have a zero-argument constructor, and allow access to properties using getter and setter methods. The name en.wikipedia.org 'Java Bean은 java로 작성된 컴포넌트'라고 정의되어 있습니다. 또 조작이 가능하고 재.. 2021. 7. 27.
JPA Default value 적용 - @DynamicInsert JPA를 적용하면서 생겼던 Default Constraint관련 이슈를 정리합니다. DB의 테이블을 설계할 때 default value 설정이 필요한 순간이 있습니다. 계정의 활성화 상태를 false로 설정하거나, 성별을 선택하지 않으면 'M'으로 설정하는 Null인 상태로 유지할 수 없는 필드의 경우 default 값 설정이 필요합니다. 이럴 때 Table을 생성할 때 Default Constraint를 설정하게 되는데 CREATE TABLE 'member' ( 'id' binary(16), 'username' varchar(255), 'social' varchar(255) DEFAULT 'LOCAL', PRIMARY KEY('id') ); 형태를 가지게 됩니다. DDL에 Default를 설정하면 데이.. 2021. 7. 20.
[OPTEE-64bit] Optee_os, Optee_client, Optee_example https://optee.readthedocs.io/en/latest/index.html OP-TEE Documentation — OP-TEE documentation documentation © Copyright 2019 - 2021 TrustedFirmware.org Revision 5b145175. optee.readthedocs.io 공식 문서에 build하는 방법이 있으나 32bit기준으로 설명되어 있으며 개발환경, 폴더 구조에 대하여 정확하게 설명하는 부분도 없고 google에 정보도 많이 없어 본인의 기록을 위해 적습니다. 개발환경 - Ubuntu18.04.05 - Python 3.6.9 - gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0 32bit일 때 arm-lin.. 2021. 7. 16.
MYSql Server8.0.17~19 'member' 예약어 이슈 최근 JPA로 테스트 DB를 만들다가 재미있는 상황이 있었습니다. 이슈 내용은 테이블을 member로 만들려 하면 발생하는 이슈였습니다. JPA 기준이면 class 이름을 Member, SQL기준이면 create table member {..}에 해당하는 DDL 작성을 시도할 때 아래와 같은 에러를 출력하게 됩니다. Caused by: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'member' at line 1 java.sql.SQLSyntaxErro.. 2021. 7. 7.
728x90