Skip to content

Commit

Permalink
Applied headers and spotless #3634
Browse files Browse the repository at this point in the history
  • Loading branch information
lorriborri committed Nov 22, 2024
1 parent 1e583e8 commit 636520f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

import jakarta.persistence.*;

import java.util.Date;

@Entity
@Table(name = User.TABLE_NAME)
public class User {
Expand All @@ -17,7 +15,6 @@ public class User {
public static final String COLUMN_EMAIL_ADDRESS = "USER_EMAIL_ADDRESS";
public static final String COLUMN_USER_ROLES = "USER_ROLES";


@Id
@Column(name = COLUMN_USER_ID, unique = true, nullable = false)
private String name;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// SPDX-License-Identifier: MIT
package com.mercedesbenz.sechub.webserver.user;

import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface UserRepository extends JpaRepository<User, String> {
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
// SPDX-License-Identifier: MIT
package com.mercedesbenz.sechub.webserver.user;

import java.util.List;
import java.util.Optional;

import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;
import org.springframework.test.context.ActiveProfiles;

import java.util.List;
import java.util.Optional;

@DataJpaTest
@ActiveProfiles("h2")
class UserRepositoryTest {
Expand Down

0 comments on commit 636520f

Please sign in to comment.