Skip to content

@Relation annotation not considered for link relation defaults #1974

@dlynch158

Description

@dlynch158

Hello,

The JSON that gets returned is this:

{
    "_embedded": {
        "employees": [

I am attempting to change an entity name from employees to "workers" by using the following Relation annotation:

@Entity
@Relation(collectionRelation = "workers", itemRelation = "worker")
public class Employee {

This has no effect on what gets returned.

The full source code of my test case is at:

https://github.com/dlynch158/relationtest

Thank you.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions