Skip to content

TRUNK-5804: Form Domain - Switching from Hibernate Mappings to Annotations#6029

Open
0abhi007 wants to merge 1 commit intoopenmrs:masterfrom
0abhi007:TRUNK-5804-form-hibernate-to-annotations
Open

TRUNK-5804: Form Domain - Switching from Hibernate Mappings to Annotations#6029
0abhi007 wants to merge 1 commit intoopenmrs:masterfrom
0abhi007:TRUNK-5804-form-hibernate-to-annotations

Conversation

@0abhi007
Copy link
Copy Markdown

@0abhi007 0abhi007 commented Apr 9, 2026

Description of what I changed

Migrated the Form domain from Hibernate XML mappings to JPA annotations.

Changes made

  • Added @entity and @table(name = "form") to Form.java
  • Added @id, @GeneratedValue, @column annotations to all fields
  • Added @manytoone and @onetomany for relationships
  • Added Jakarta Persistence imports
  • Removed reference to Form.hbm.xml from hibernate.cfg.xml
  • Deleted Form.hbm.xml

Related JIRA issue

https://openmrs.atlassian.net/browse/TRUNK-5804

@0abhi007
Copy link
Copy Markdown
Author

0abhi007 commented Apr 9, 2026

@mogoodrich @dkayiwa @ibacher @mseaton @wikumChamith could one of you
please review this PR? It migrates the Form domain (TRUNK-5804) from
Hibernate XML mappings to JPA annotations.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 9, 2026

private Integer build;

@Column(name = "published")
private Boolean published = false;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

length is missing

@Binayak490-cyber
Copy link
Copy Markdown
Contributor

@0abhi007, build is also failing...!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants