Can JPA persist data in JSON format? -


we have large java pojo's serialize , save database lob's cuz easier having 100 different tables handle our strings, integer, collection fields. these seems icky if ever need change java objects themselves.

would saving them serialized json better approach? there best practice this? i'm wondering whether jpa can automatically serialize/deserialize using jackson.

edit: since people seem asking this, here justification:

  • this java class used save form field information. there 100 fields.
  • 20 of fields collections; therefore queries on data require 20 different joins each of tables backing collections
  • 99% of these fields empty because fields optional; therefore 21 different empty tables wasteful
  • there never queries against these individual tables. data retrieve @ once.

so have kind of reason doing way.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -