• Hibernate/JPA Table Per Class Inheritance Example

    Hibernate/JPA Table Per Class Inheritance Example

    In this tutorial, we show how to map entity hierarchies onto database tables. There are several ways of mapping inheritance to the database. Here, we’ll look into Hibernate/JPA table per class inheritance.

    2019-08-10[Java]

    阅读更多
  • Hibernate/JPA Named Query XML and Annotation Example

    This tutorial show how to use Hibernate/JPA Named Queries. We start by explaining why we would use named queries. Next, we show an example of how to use named queries, either with annotations or XML configuration.

    2019-08-10[Java]

    阅读更多
  • Hibernate/JPA Named Native Query XML and Annotation Example

    Previously, we saw how to use named queries. This tutorial, we show how to use Hibernate/JPA Named Native Queries. With Named Native Queries, we can use native SQL statements.

    2019-08-10[Java]

    阅读更多
  • Hibernate/JPA Named Stored Procedure XML and Annotation Example

    This tutorial show how to use Named Stored Procedures using JPA with either XML and Annotations. We show a concrete example how to use Named Stored Procedures.

    2019-08-10[Java]

    阅读更多
  • Hibernate/JPA Batch Insert and Batch Update Example

    This tutorial shows how to create batch insert and batch update statements using JPA and Hibernate. JDBC offers support for batching together SQL statements that can be represented as a single PreparedStatement. The JDBC driver will send the batched operation to the server in one call. This can potentially lead in a reduction to network bandwidth usage.

    2019-08-10[Java]

    阅读更多
  • Unit Test JPA with JUnit H2 In Memory Database

    Unit Test JPA with JUnit H2 In Memory Database

    This tutorial shows how to Unit Test JPA with JUnit and a H2 In Memory Database. Some people disagree and don’t call these unit tests, but integration tests. Imho there is some truth in both. The following is not a pure unit test and neither is it a pure integration test. ‘Cause it doesn’t use an identical copy of the production database. That a side, let’s look at the example.

    2019-08-10[Java]

    阅读更多
  • Spring Boot Spring Data JPA with Hibernate and H2 Web Console

    Spring Boot  Spring Data JPA with Hibernate and H2 Web Console

    The H2 database provides a browser-based web console that Spring Boot can auto-configure for you. In order to let spring auto-configure the H2 Web Console, we have to make sure we are developing a web application, make sure the com.h2database:h2 dependency resides on the classpath and we are using the org.springframework.boot:spring-boot-devtools. You can also manually configure the h2 web console. In the following tutorial we demonstrate how to configure the H2 Web Console using Spring Boot, Spring Data with Hibernate.

    2019-08-10[Java]

    阅读更多
  • Spring Boot + Spring Security + Hibernate Configuration Example

    Spring Boot + Spring Security + Hibernate Configuration Example

    This tutorial demonstrates how to configure Spring Security Hibernate and Spring Boot. We secure a simple stateless web service using basic authentication. We configure Spring Security using Spring Java and/or XML Configuration. Finally, we write some JUnit Integration Tests with spring-test, h2 in-memory database and MockMvc.

    2019-08-10[Java]

    阅读更多
  • Spring Security User Registration with Hibernate and Thymeleaf

    Spring Security User Registration with Hibernate and Thymeleaf

    In this example we show how to create a user registration form with Spring Security, Hibernate and Thymeleaf. We validate the user registration fields with hibernate validator annotations and a custom field matching validator to validate if the email and/or password fields match.

    2019-08-10[Java]

    阅读更多
  • Spring Security Forgot Password Send Email Reset Password

    Spring Security Forgot Password Send Email Reset Password

    In this tutorial we demonstrate how to use Spring Security, Spring Boot, Hibernate and Thymeleaf to program a password reset flow by sending the user an email address to verify the reset password procedure. When a user has forgot his password, he is able to request a password reset. The application will generate a unique PasswordResetToken and store it in the database. The user’ll receive an email with the unique token. When he clicks the link, the user is redirected to a page where he can change his password.

    2019-08-10[Java]

    阅读更多
共有 55 条记录 首页123

 


  • 微信公众号

  • 我的微信

站点声明:

1、一号门博客CMS,由Python, MySQL, Nginx, Wsgi 强力驱动

2、部分文章或者资源来源于互联网, 有时候很难判断是否侵权, 若有侵权, 请联系邮箱:summer@yihaomen.com, 同时欢迎大家注册用户,主动发布无版权争议的 文章/资源.

3、鄂ICP备14001754号-3, 鄂公网安备 42280202422812号