Skip to content

VF conversion causes non-persistent object with null id (required field) #67

@fosterlynn

Description

@fosterlynn

In OCP, on EconomicEvent we have a resource and a resource type (== resource taxonomy item) as separate fields. In VF EconomicEvent does not have a resource taxonomy item, but can have a resource with only the data resource taxonomy item. So this resource is not persistent in the OCP database. I'm constructing it, but it doesn't have an id, because that comes from the database. Id is required so if you query it for these non-persistent resources, you get an error. (Is this at all clear?)

This works fine as long as you don't query it, as far as I can tell. So I'm going with it, but am wondering if anyone else has thoughts about how to handle this situation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions