1234567891011121314151617181920212223242526272829 |
- /*
- * Copyright (c) 02 Feb 2025, Andrew Grant of Carrick Software .
- * All rights reserved.
- */
- package scot.carricksoftware.grantswriter;
- import jakarta.persistence.GeneratedValue;
- import jakarta.persistence.GenerationType;
- import jakarta.persistence.Id;
- import jakarta.persistence.MappedSuperclass;
- @MappedSuperclass
- public class BaseEntity {
- @Id
- @GeneratedValue(strategy = GenerationType.IDENTITY)
- private Long id;
- @SuppressWarnings("unused")
- public void setId(Long id) {
- this.id = id;
- }
- @SuppressWarnings("unused")
- public Long getId() {
- return id;
- }
- }
|