Skip to content

Entities named differently to the underlying database table are misnamed in the schema #304

Open
@Syreniac

Description

@Syreniac

If you have an entity like this:

@Table(name = "EWARLNSYHTATT")
public class EntityWithAReallyLongNameSoYouHaveToAbbreviateTheTable{

}

In the generated schema, the generated type would be "EWARLNSYHTATT" rather than the actual entity name. The underlying problem is in GraphQLJpaSchemaBuilder.resolveTypeName() - instead of doing managedType.getName(), it should arguably be doing managedType.getJavaType().getName().

Alternatively if this is intended, it would be good to get an annotation that could be put on types to control what the generated schema names a given type?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions