Open radovanradic opened 11 months ago
not sure if this is a bug, the user would need to specify the access kind. See https://docs.micronaut.io/latest/api/io/micronaut/core/annotation/Introspected.html#accessKind()
I tried this
@MappedEntity
@Introspected(accessKind = Introspected.AccessKind.FIELD)
public class ExampleDomain {
@Id
public Long id;
public String name;
}
and getting the same compilation errors.
Expected Behavior
Having an entity
and repository
Repository should support
findById
and customfindByName
method.Actual Behaviour
The compiler error is thrown:
Unable to implement Repository method: ExampleDomainRepository.update(Object entity). No identity is present
Also won't be able to implement findByName complaining
Unable to implement Repository method: ExampleDomainRepository.findByName(String name). Cannot query entity [ExampleDomain] on non-existent property: Name
Steps To Reproduce
Just try to create repository for the entity above.
Environment Information
Any
Example Application
No response
Version
3.x, 4.x