Skip to content

ConstraintViolation Session.start can not be null #3

@aslakknutsen

Description

@aslakknutsen

There is a miss match somewhere when letting Hibernate generate the database schema from current source.

Session.start is nullable false:
https://github.com/onslyde/server/blob/master/src/main/java/com/onslyde/domain/Session.java#L95

While during first user Member Registration and Session creation a Session is created for the User without any start date and cause a 'constraint validation error':
https://github.com/onslyde/server/blob/master/src/main/java/com/onslyde/service/MemberRegistration.java#L52

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions