jansupol / jsonbapi

0 stars 0 forks source link

Automatically Apply jsonbadapaters #35

Open jansupol opened 9 years ago

jansupol commented 9 years ago

In the spirits of what JPA has done with AttributeConverter(autoApply=true)

@JsonbAnnotation
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.ANNOTATION_TYPE, ElementType.FIELD, ElementType.METHOD,ElementType.TYPE})
public @interface JsonbTypeAdapter {

  //Defines if the runtime should automatically use the following adapter
  //for all types as defined by the adapter implementation generic-type
  //default is false
  boolean autoApply() default false;
 }
jansupol commented 6 years ago
jansupol commented 9 years ago

@glassfishrobot Commented Reported by marembo2008

jansupol commented 9 years ago

@glassfishrobot Commented rmannibucau said: Jsonb relies on a config instance which can hold this. JPA supports it cause it supports scanning of (explicit or not) managed types. For me this JPA spirit doesnt match jsonb even if the "global" need needs to be there.

jansupol commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA JSONB_SPEC-35