Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed RouteFollowed backend relation with Route #37

Merged
merged 2 commits into from
Dec 21, 2023
Merged

Conversation

SergiFn
Copy link
Contributor

@SergiFn SergiFn commented Dec 19, 2023

No description provided.

@@ -40,7 +40,6 @@ public class RouteFollowed extends UriEntity<Long> {

@JsonProperty(access = JsonProperty.Access.READ_ONLY)
@NotNull
@ManyToOne
public Route routeOrigin;
public String follows;
Copy link
Member

Choose a reason for hiding this comment

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

No need to change the type in the backend, please, keep it a Route with the updated name:

@ManyToOne
public Route follows;

In the frontend you can also store the Route entity, but when sending to the backend, if the entity already exists, use its URI instead (which is stored as a String).

Copy link
Member

Choose a reason for hiding this comment

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

Like it is done for RouteVersion:
UdL-EPS-SoftArch/myroutes@33201e0

Copy link
Contributor Author

Choose a reason for hiding this comment

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

All the changes are already submitted in both front and backend.

@rogargon rogargon merged commit 2adccd5 into main Dec 21, 2023
1 check passed
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.

2 participants