Skip to content

LuisFernando1407/dp_json_type

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dev persistence using type JSON

Entity

  • If you use MySQL the column type must be in this format
    @Type(type = "json")
    @Column(name="dataEvent", columnDefinition = "json")
    private Object object;
  
  • If you use postgreSQL the column type must be in this format
    @Type(type = "jsonb")
    @Column(name="dataEvent", columnDefinition = "jsonb")
    private Object object;
  

About

Example use JSON (column) type in MySQL and PostgreSQL

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages