Hibernate 6 not svave multi data at a time

I saved single data but multi data not save
Then error… tomcat

org.hibernate.PersistentObjectException: detached entity passed to persist: project.test.bn.TestBn

-------------Bean----

package project.test.bn;

import java.io.Serializable;
import java.util.Date;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.Table;

@Entity
@Table(name=“tbl_test”)

public class TestBn implements Serializable{
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name=“TSID”,length=4)
private int tsid;
@Column(name=“NAME”,length=25)
private String name;
@Column(name=“SALARY”,length=10)
private int salary;
@Column(name=“Dates”,length=25)
private Date dates;

public int getTsid() {
	return tsid;
}
public void setTsid(int tsid) {
	this.tsid = tsid;
}
public String getName() {
	return name;
}
public void setName(String name) {
	this.name = name;
}
public int getSalary() {
	return salary;
}
public void setSalary(int salary) {
	this.salary = salary;
}
public Date getDates() {
	return dates;
}
public void setDates(Date dates) {
	this.dates = dates;
}		

}

The exception is very clear. You pass a detached entity (e.g. entity with an tsid set) to the persist method, which is not allowed. tsid is generated, so you can’t set that field on an entity that is passed to persist.