micronaut-projects / micronaut-data

Ahead of Time Data Repositories
Apache License 2.0
466 stars 197 forks source link

Save all ignores MappedProperty/TypeDef annotation for json fields in embedded class #1864

Open rlconst opened 1 year ago

rlconst commented 1 year ago

Expected Behavior

I have embedded with following annotation

@Embeddable
class MyEmbedded(
  @field:[
  JsonInclude(value = JsonInclude.Include.NON_EMPTY, content = JsonInclude.Include.NON_EMPTY)
  TypeDef(type = DataType.JSON)
  MappedProperty(value = "map", type = DataType.JSON)
  ]
  override val map: Map<String, String>? = emptyMap(),
)

Actual Behaviour

generated insert statement missing both json declaration for null obect and json

Steps To Reproduce

No response

Environment Information

No response

Example Application

No response

Version

3.7.4

ginaesps commented 1 year ago

Hello! Is this issue still available?

rlconst commented 1 year ago

@ginaesps I need to check