Skip to content

Commit

Permalink
rename misleading CorsConfig to WebConfig (as it also includes non-co…
Browse files Browse the repository at this point in the history
…rs config). Annotate Clob types to force interpretation as text instead of long
  • Loading branch information
clezag committed Oct 26, 2023
1 parent 1e38c88 commit d1c104f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions writer/src/main/java/it/bz/idm/bdp/dal/Event.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ public void setEventSeriesUuid(String eventSeriesId) {
private Provenance provenance;

@Lob
@Column(columnDefinition = "text")
private String description;

public Provenance getProvenance() {
Expand Down
1 change: 1 addition & 0 deletions writer/src/main/java/it/bz/idm/bdp/dal/Location.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public class Location {
protected Geometry geometry;

@Lob
@Column(columnDefinition = "text")
private String description;

public Geometry getGeometry() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ public class MeasurementString extends MeasurementAbstract {
* Ex. private String value; and private Double value; would not work
* inside MeasurementString and Measurement respectively
*/
@Column(nullable = false)
@Lob
@Column(nullable = false, columnDefinition = "text")
private String stringValue;

public MeasurementString() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ public class MeasurementStringHistory extends MeasurementAbstractHistory {
* Ex. private String value; and private Double value; would not work
* inside MeasurementStringHistory and MeasurementHistory respectively
*/
@Column(nullable = false)
@Lob
@Column(nullable = false, columnDefinition = "text")
private String stringValue;

public MeasurementStringHistory() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

@Configuration
@EnableWebMvc
public class CorsConfig implements WebMvcConfigurer {
public class WebConfig implements WebMvcConfigurer {

@Value("${security.cors.allowedOrigins:*}")
private String[] allowedOrigins;
Expand Down

0 comments on commit d1c104f

Please sign in to comment.