This file contains 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.junit.Before; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; | |
import org.mockito.InjectMocks; | |
import org.mockito.Mock; | |
import org.mockito.junit.MockitoJUnitRunner; | |
import org.springframework.expression.spel.support.StandardEvaluationContext; | |
import org.springframework.security.access.expression.method.MethodSecurityExpressionHandler; | |
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken; | |
import org.springframework.security.core.Authentication; |
This file contains 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
interviewing.io - Discount code ($100 off)- https://iio.sh/r/EQCv | |
Get $100 off at interviewing.io - https://iio.sh/r/EQCv | |
#FAANG | |
#MockInterview | |
#META | |
#Microsoft |
This file contains 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
https://app.codecrafters.io/r/calm-serval-779938 |
This file contains 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
# Created by https://www.toptal.com/developers/gitignore/api/angular,node,intellij,java,maven | |
# Edit at https://www.toptal.com/developers/gitignore?templates=angular,node,intellij,java,maven | |
### Angular ### | |
## Angular ## | |
# compiled output | |
dist/ | |
tmp/ | |
app/**/*.js | |
app/**/*.js.map |
This file contains 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
User | |
Convert legacy Hibernate Criteria to Spring Boot JPA | |
ChatGPT | |
Hibernate Criteria is a way of building dynamic queries in Hibernate using Java code. JPA (Java Persistence API) is a specification that defines a set of Java interfaces for accessing relational databases. Spring Boot provides a JPA implementation, which makes it easier to work with relational databases in a Spring Boot application. | |
Here's an example of how to convert a Hibernate Criteria query to Spring Boot JPA: | |
Hibernate Criteria query: | |
java |
This file contains 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
codecrafters.io | |
https://app.codecrafters.io/join?via=sachin-handiekar |
This file contains 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
interviewing.io - Discount code ($100 off)- https://interviewing.io/?urc=jVrE | |
Get $100 off at interviewing.io - https://iio.sh/r/jVrE | |
This file contains 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>[SUBJECT]</title> | |
<style type="text/css"> | |
body { | |
padding-top: 0 !important; | |
padding-bottom: 0 !important; | |
padding-top: 0 !important; |
This file contains 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>[SUBJECT]</title> | |
<style type="text/css"> | |
body { | |
padding-top: 0 !important; | |
padding-bottom: 0 !important; | |
padding-top: 0 !important; |
This file contains 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
Get $100 free credit - DigitalOcean | |
https://m.do.co/c/7f9140b7e9e1 |
NewerOlder