This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.codecika.kotlindemo.service | |
| import com.codecika.kotlindemo.converter.toVO | |
| import com.codecika.kotlindemo.model.domain.Student | |
| import com.codecika.kotlindemo.model.repository.StudentRepository | |
| import com.codecika.kotlindemo.vo.StudentVO | |
| import org.springframework.beans.factory.annotation.Autowired | |
| import org.springframework.stereotype.Service | |
| import java.util.* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.codecika.kotlindemo.controller | |
| import com.codecika.kotlindemo.converter.toModel | |
| import com.codecika.kotlindemo.model.domain.Student | |
| import com.codecika.kotlindemo.service.StudentService | |
| import com.codecika.kotlindemo.vo.StudentVO | |
| import org.springframework.beans.factory.annotation.Autowired | |
| import org.springframework.web.bind.annotation.* | |
| import java.util.* | |
| import javax.validation.Valid |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| spring.datasource.url = jdbc:mysql://localhost:3306/kotlin-demo?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&useSSL=false | |
| spring.datasource.username = kotlin | |
| spring.datasource.password= welcome1 | |
| spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect | |
| spring.jpa.hibernate.ddl-auto = update |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { Component } from 'react'; | |
| import { | |
| Badge, | |
| Button, | |
| ButtonDropdown, | |
| Card, | |
| CardBody, | |
| CardFooter, | |
| CardHeader, | |
| Col, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.monggopesen.mainservice.config; | |
| import org.springframework.beans.factory.annotation.Autowired; | |
| import org.springframework.beans.factory.annotation.Qualifier; | |
| import org.springframework.context.annotation.Bean; | |
| import org.springframework.context.annotation.Configuration; | |
| import org.springframework.core.io.ClassPathResource; | |
| import org.springframework.security.authentication.AuthenticationManager; | |
| import org.springframework.security.authentication.UsernamePasswordAuthenticationToken; | |
| import org.springframework.security.core.context.SecurityContextHolder; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.monggopesen.mainservice.config; | |
| import org.springframework.beans.factory.annotation.Autowired; | |
| import org.springframework.context.annotation.Bean; | |
| import org.springframework.context.annotation.Configuration; | |
| import org.springframework.security.authentication.AuthenticationManager; | |
| import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder; | |
| import org.springframework.security.config.annotation.web.builders.HttpSecurity; | |
| import org.springframework.security.config.annotation.web.builders.WebSecurity; | |
| import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.monggopesen.mainservice.persistence.domain; | |
| import lombok.Data; | |
| import org.hibernate.annotations.DynamicUpdate; | |
| import org.springframework.security.core.GrantedAuthority; | |
| import org.springframework.security.core.authority.SimpleGrantedAuthority; | |
| import org.springframework.security.core.userdetails.UserDetails; | |
| import javax.persistence.Column; | |
| import javax.persistence.Entity; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- Swagger --> | |
| <dependency> | |
| <groupId>io.springfox</groupId> | |
| <artifactId>springfox-swagger2</artifactId> | |
| <version>2.7.0</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>io.springfox</groupId> | |
| <artifactId>springfox-swagger-ui</artifactId> | |
| <version>2.7.0</version> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.springframework.context.annotation.Bean; | |
| import org.springframework.context.annotation.Configuration; | |
| import springfox.documentation.builders.PathSelectors; | |
| import springfox.documentation.builders.RequestHandlerSelectors; | |
| import springfox.documentation.service.ApiInfo; | |
| import springfox.documentation.service.Contact; | |
| import springfox.documentation.spi.DocumentationType; | |
| import springfox.documentation.spring.web.plugins.Docket; | |
| import springfox.documentation.swagger2.annotations.EnableSwagger2; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ##custom query berdasarkan level3 | |
| SELECT l1.name , l2.name , l3.name FROM Category AS l3 | |
| LEFT JOIN Category AS l2 ON l3.parent = l2.secureId | |
| LEFT JOIN Category AS l1 ON l2.parent = l1.secureId | |
| WHERE l3.secureId = {{secureId}} | |
| ##custom query berdasarkan level 2 | |
| SELECT l1.name , l2.name FROM Category AS l2 | |
| LEFT JOIN Category AS l1 ON l2.parent = l1.secureId |