Skip to content

Retrieve the database object when posting an entity #34

@xfrancois

Description

@xfrancois

Hello,
When posting an entity with Bowman, the post method returns the entity with the resource id field populated via reflexion. However, if there are fields which are directly populated by the database (an auto-increment for example)n the field won't be filled in Bowman.
It's easy to bypass this problem by doing something like this :

 public MyEntity postMyEntity(final MyEntity myEntity) {
        URI myEntityURI= myEntityClient.post(myEntity);
        return myEntityClient.get(myEntityURI);
    }

I guess it could be usefull to implement something like this directly in Bowman ? What do you think ?

Thank you for this awesome library !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions