Skip to content

Java spring boot generator inheritance #1079

Answered by Ananya46Nigam
Queng123 asked this question in Q&A
Discussion options

You must be logged in to vote

In Spring Boot, if you want to use inheritance with classes generated by a generator like the one you've provided, you'll typically have to manually create the class that you want to extend, in this case, the Event class.

1.You need to manually create a Java class named Event that "ResortSAEWorkerEvent" can extend. This class should contain the properties and methods that you want to inherit.

  1. Update the "ResortSAEWorkerEvent" class
    Once you have created the Event class, you can extend it in your ResortSAEWorkerEvent class.

For example:

Event.java
public class Event {
// Properties and methods that you want to inherit
}

ResortSAEWorkerEvent.java
public class ResortSAEWorkerEvent extends …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Queng123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants