Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gth99spB1CzQmBFofXmU4Z
23 lines
298 B
Java
23 lines
298 B
Java
package com.ankurm.h8;
|
|
|
|
import jakarta.persistence.Entity;
|
|
import jakarta.persistence.GeneratedValue;
|
|
import jakarta.persistence.Id;
|
|
|
|
@Entity
|
|
public class Parent {
|
|
|
|
@Id
|
|
@GeneratedValue
|
|
Long id;
|
|
|
|
String label;
|
|
|
|
protected Parent() {
|
|
}
|
|
|
|
public Parent(String label) {
|
|
this.label = label;
|
|
}
|
|
}
|