Compare commits
No commits in common. "main" and "submit" have entirely different histories.
@ -387,3 +387,4 @@ jobs:
|
||||
--server-url "${SERVER_URL}" \
|
||||
--external-host "${EXTERNAL_GITEA_HOST}"
|
||||
fi
|
||||
|
||||
|
||||
@ -16,9 +16,6 @@ java {
|
||||
|
||||
repositories {
|
||||
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()
|
||||
}
|
||||
|
||||
@ -53,9 +50,5 @@ tasks.withType<Test> {
|
||||
reports {
|
||||
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
|
||||
org.gradle.daemon=false
|
||||
# Gradle settings
|
||||
org.gradle.daemon=true
|
||||
org.gradle.parallel=true
|
||||
org.gradle.caching=true
|
||||
|
||||
# Disable parallel execution
|
||||
org.gradle.parallel=false
|
||||
# JDK 21 path - modify this to your actual installation path
|
||||
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.*;
|
||||
|
||||
/**
|
||||
* 姝屾洸瀹炰綋绫?
|
||||
* 歌曲实体类
|
||||
*
|
||||
* 闇€瑕佸疄鐜帮細
|
||||
* - 灏嗘绫绘槧灏勪负鏁版嵁搴撹〃 "songs"
|
||||
* - id 浣滀负鑷涓婚敭
|
||||
* - 姣忛姝屾洸灞炰簬涓€涓瓕鍗曪紙澶氬涓€鍏崇郴锛?
|
||||
* 需要实现:
|
||||
* - 将此类映射为数据库表 "songs"
|
||||
* - id 作为自增主键
|
||||
* - 每首歌曲属于一个歌单(多对一关系)
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "songs")
|
||||
@ -18,13 +18,10 @@ public class Song {
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Long id;
|
||||
|
||||
@Column(nullable = false)
|
||||
private String title;
|
||||
|
||||
@Column(nullable = false)
|
||||
private String artist;
|
||||
|
||||
@Column(nullable = false)
|
||||
private int durationInSeconds;
|
||||
|
||||
@ManyToOne
|
||||
|
||||
Loading…
Reference in New Issue
Block a user