Compare commits
No commits in common. "main" and "submit" have entirely different histories.
@ -387,3 +387,4 @@ jobs:
|
|||||||
--server-url "${SERVER_URL}" \
|
--server-url "${SERVER_URL}" \
|
||||||
--external-host "${EXTERNAL_GITEA_HOST}"
|
--external-host "${EXTERNAL_GITEA_HOST}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@ -16,9 +16,6 @@ java {
|
|||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
maven { url = uri("https://maven.aliyun.com/repository/public") }
|
maven { url = uri("https://maven.aliyun.com/repository/public") }
|
||||||
maven { url = uri("https://maven.aliyun.com/repository/central") }
|
|
||||||
maven { url = uri("https://maven.aliyun.com/repository/spring") }
|
|
||||||
maven { url = uri("https://maven.aliyun.com/repository/spring-plugin") }
|
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -53,9 +50,5 @@ tasks.withType<Test> {
|
|||||||
reports {
|
reports {
|
||||||
junitXml.required.set(true)
|
junitXml.required.set(true)
|
||||||
}
|
}
|
||||||
// Simplified configuration for Java 21 compatibility
|
|
||||||
enableAssertions = true
|
|
||||||
// Increase memory for tests
|
|
||||||
jvmArgs = listOf("-Xmx1024m", "-XX:+UseG1GC")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,11 +1,8 @@
|
|||||||
# Disable Gradle Daemon
|
# Gradle settings
|
||||||
org.gradle.daemon=false
|
org.gradle.daemon=true
|
||||||
|
org.gradle.parallel=true
|
||||||
|
org.gradle.caching=true
|
||||||
|
|
||||||
# Disable parallel execution
|
# JDK 21 path - modify this to your actual installation path
|
||||||
org.gradle.parallel=false
|
org.gradle.java.home=F:/OpenJDK21U-jdk_x64_windows_hotspot/jdk-21.0.9.10-hotspot
|
||||||
|
|
||||||
# Disable configuration on demand
|
|
||||||
org.gradle.configureondemand=false
|
|
||||||
|
|
||||||
# Fix for Java 21 compatibility
|
|
||||||
org.gradle.jvmargs=-Xmx1024m -XX:+UseG1GC
|
|
||||||
|
|||||||
@ -3,12 +3,12 @@ package com.vibevault.model;
|
|||||||
import jakarta.persistence.*;
|
import jakarta.persistence.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 姝屾洸瀹炰綋绫?
|
* 歌曲实体类
|
||||||
*
|
*
|
||||||
* 闇€瑕佸疄鐜帮細
|
* 需要实现:
|
||||||
* - 灏嗘绫绘槧灏勪负鏁版嵁搴撹〃 "songs"
|
* - 将此类映射为数据库表 "songs"
|
||||||
* - id 浣滀负鑷涓婚敭
|
* - id 作为自增主键
|
||||||
* - 姣忛姝屾洸灞炰簬涓€涓瓕鍗曪紙澶氬涓€鍏崇郴锛?
|
* - 每首歌曲属于一个歌单(多对一关系)
|
||||||
*/
|
*/
|
||||||
@Entity
|
@Entity
|
||||||
@Table(name = "songs")
|
@Table(name = "songs")
|
||||||
@ -18,13 +18,10 @@ public class Song {
|
|||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
@Column(nullable = false)
|
|
||||||
private String title;
|
private String title;
|
||||||
|
|
||||||
@Column(nullable = false)
|
|
||||||
private String artist;
|
private String artist;
|
||||||
|
|
||||||
@Column(nullable = false)
|
|
||||||
private int durationInSeconds;
|
private int durationInSeconds;
|
||||||
|
|
||||||
@ManyToOne
|
@ManyToOne
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user