working get QRCode Details

This commit is contained in:
heyethereum
2024-07-19 21:45:13 +08:00
parent a236eb13f8
commit f7e592f8ec
6 changed files with 14 additions and 9 deletions

View File

@@ -30,7 +30,7 @@ public class QRCodeEntity {
private String userId;
private String contents;
@ManyToOne(fetch = FetchType.LAZY)
@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "qr_code_type_id", nullable = false)
private QRCodeTypeEntity info;

View File

@@ -2,6 +2,7 @@ package com.safeqr.app.qrcode.entity;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.hypersistence.utils.hibernate.type.array.ListArrayType;
import jakarta.persistence.*;
import lombok.Data;
import lombok.NoArgsConstructor;
@@ -46,12 +47,15 @@ public class URLEntity {
private int redirect = 0;
@Type(ListArrayType.class)
@Column(name = "hsts_header", columnDefinition = "text[]")
private List<String> hstsHeader;
@Type(ListArrayType.class)
@Column(name = "ssl_stripping", columnDefinition = "boolean[]")
private List<Boolean> sslStripping;
@Type(ListArrayType.class)
@Column(name = "redirect_chain", columnDefinition = "text[]")
private List<String> redirectChain;
}