Skip to content

Only (code)generate propertyChangeSupport field if it does not already exist? #171

@mediahype

Description

@mediahype

As soon as a Bean property gets set = "bound" the code generator generates:

private PropertyChangeSupport propertyChangeSupport = new PropertyChangeSupport(this);

And then I cannot save my Bean to mongo anymore (I use morphia), the error is:

Caused by: org.mongodb.morphia.mapping.MappingException: Error mapping field:java.beans.PropertyChangeSupport.map

I also cannot mark propertyChangeSupport transient, because it gets overwritten by the code generator.

How could this be solved? My (amateur) idea is in the topic.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions