Create Java annotation direct file from SQL

Hi,
I have seen the option in Hibernate to create XML annotation files, however is there a tool to create POJO annotation file direct from SQL commands?
Example SQL input:

CREATE TABLE T126_PROJECTS(
	PID BIGINT NOT NULL,
	CL_COMMIT_RPID BIGINT NOT NULL,
	COMMENCED TIMESTAMP NOT NULL,
	PROJECT_CODE SMALLINT NOT NULL,
	PROJECT_OFFSET BIGINT NOT NULL,
	PROJECT_NAME VARCHAR(100) NOT NULL
	);

and generate output as the POJO Java annotation file as:

@Entity
@Table(name="T126_PROJECTS")
public class T126_Projects {

	@Id
	@Column(name="PID")
	private long pid;
	
	@Column(name="CL_COMMIT_RPID")
	private long clCommit;
	
	@Column(name="COMMENCED")
	private String timeStamp;
	
	@Column(name="PROJECT_CODE")
	private int projectCode;
	
	@Column(name="PROJECT_OFFSET")
	private long projectOffset;
	
	@Column(name="PROJECT_NAME")
	private String projectName;
	
	public T126_Projects() {
		System.out.println("T126_Projects constructor");
	}
}

I am using Eclipse so the get/set methods and toString() can be automatic generated if I have the basis annotation class setup.
Nils

See JBoss Tools - Hibernate Tools for details

Now logged in as user NTo!
Sorry, I have still problems and do not find out how to activate in Eclipse:
Have installed:
Hibernate Tools for Eclipse
Version: 5.4.17.v20220622-1703
(c) Copyright (c) Red Hat, Inc., contributors and others 2004 - 2012. All rights reserved.
Visit http://tools.hibernate.org

and

JBoss Tools 4.24.0.Final Stable

  • Individual plugins for Eclipse, including experimental plugins
  • Install into existing Eclipse 4.24 (2022-06) (or later)
  • Some assembly required
  • JBoss Central to install extra features
  • Community only support
  • Released on 2022-07-04

That include a large number of JBoss plugins?

Nils

There are a couple of tutorials online that explain how to use the JBoss Tools plugin, e.g. Hibernate Tools - YouTube