by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 04:09
    tsabirgaliev closed #249
  • 04:09
    tsabirgaliev closed #250
  • 03:47
    marcusvoltolim synchronize #428
  • 03:45
    marcusvoltolim edited #428
  • 03:45
    marcusvoltolim edited #428
  • 03:45
    marcusvoltolim synchronize #428
  • 03:02
    marcusvoltolim edited #428
  • 03:02
    marcusvoltolim edited #428
  • 03:01
    marcusvoltolim edited #428
  • 03:00
    marcusvoltolim edited #428
  • 02:59
    marcusvoltolim edited #428
  • 02:59
    marcusvoltolim edited #428
  • 02:59
    marcusvoltolim opened #428
  • Sep 19 17:27

    sothawo on master

    DATAES-929 - Support geo_shape … (compare)

  • Sep 19 17:27
    sothawo closed #520
  • Sep 19 17:26
    sothawo opened #520
  • Sep 18 16:29

    gregturn on master

    DATACOUCH-614 - Only test other… (compare)

  • Sep 18 16:28

    gregturn on master

    DATAES-928 - Only test other ve… (compare)

  • Sep 18 16:27

    gregturn on master

    DATAREDIS-1220 - Only test othe… (compare)

  • Sep 18 16:25

    gregturn on master

    DATAREST-1563 - Only test other… (compare)

James Howe
@OrangeDog
@Table has a schema attribute, if that's what you mean.
James Howe
@OrangeDog
Hibernate: if you get a QuerySyntaxException on a ( does that mean the dialect isn't aware of the function?
James Howe
@OrangeDog
Maybe I'm doing it wrong, but registering the function in a custom dialect doesn't appear to have solved it
James Howe
@OrangeDog
Found the answer. You have to add = 1 or = true- https://stackoverflow.com/a/12976962/476716
Matt Henry
@matthenry87
Hey all. I'm trying to create an aggregation that uses the Atlas Search's '$search' pipeline stage. This is different from the normal text search, and is something offered via the managed Atlas MongoDB product. Is there any support for this?
I've tried to leverage mongoTemplate.getCollection().aggregate (), passing in an array of Document objects, but then I run into Codec issues when it tries to convert to my specified POJO :/
Matt Henry
@matthenry87
Solved it for now using an anonymous class, implementing the toDocument() on AggregationOperation and piecing together the $search pipeline operation.
Jonathan Kolberg
@j.kolberg_gitlab
Hi all. I'm having a problem with cors in spring data rest. I have a RepositoryInferface with CrossOrigin annotation and Cors prevents the browser javascript from doing a put to create an association for a OneToOne relationship
Cedrick Lunven
@clun

[SpringDATACassandra] is this a known issue that you cannot use nested Collections ? Is there a workaround ?

Table

create table refdata_mapping(
  source        text,
  destination   text,
  field_mapping map<text,text>,
  audit         list<frozen<map<text,text>>>,
  PRIMARY KEY ((source), destination)
)

Entity

@Table(value="refdata_mapping")
public class RefDataMapping {
    @PrimaryKeyColumn(value="source",ordinal=0,type= PrimaryKeyType.PARTITIONED)
    private String source;

    @PrimaryKeyColumn(value="destination",ordinal=1,type= PrimaryKeyType.CLUSTERED)
    private String destination;

    @Column(value="field_mapping")
    private Map<String,String> fieldMapping;

    @Frozen
    @Column(value="audit")
    private List<Map<String,String >> audit;

Error on findbyId => codec not found for requested operation [map<varchar,varchar> <-> java.util.Map]

Mark Paluch
@mp911de
@clun sounds like a bug. Can you file a ticket at https://jira.spring.io along with a minimal reproducer?
Cedrick Lunven
@clun
Thank you @mp911de . Will do
Fly-Away
@Fly-Away
Hi is spring data envers support auditing along with mongodbrepository? I usually use it in JpaRepository with postgres db only
Mark Paluch
@mp911de
Envers is an Add-on to Hibernate. MongoDB isn't affiliated with Hibernate at all
Rohan Kumar
@rohanKanojia
Hi guys, I'm trying to access couchbase db running in kubernetes from spring
I have defined connection configuration like this:
~/work/repos/kubernetes-java-sample/maven/webapp : $ cat src/main/resources/application.properties 
spring.couchbase.bootstrap-hosts=192.168.39.77
spring.couchbase.bootstrap-port=32099
spring.couchbase.bucket.name=books
spring.couchbase.bucket.password=123456
However, this doesn't seem to override default port. It gives me this error: java.net.ConnectException: Connection refused: /192.168.39.77:8091
Does anyone know how to override default port in spring data couchbase?
Adrien Lecharpentier
@alecharp
Hello @mp911de. From spring-data-envers issue tracker, and local experimentation, something changed recently which breaks the library behaviour. spring-projects/spring-data-envers#250 sums up exactly what I'm facing. If you (or anyone) could have a look it would be great. Thanks!
Christopher Davis
@cdavispax8
Hi all, how would I go about using aggregates in a spring data elasticsearch query? Do I have to write the query out manually?
The example is I have an index containing products and I just need to see a distinct list of vendors among those products.
1 reply
Al Grant
@bigal_nz_twitter

I have this:

public interface PlanServiceUserGen extends PlanService {
    Optional<PlanTaskViewDTOUserGen> getPlanWithTasks(Long id);
}

but there is no method on PlanService defining getPlanWithTasks - so how is this even working? (As it stands it only retreives one of the linked Tasks)

Fly-Away
@Fly-Away

Envers is an Add-on to Hibernate. MongoDB isn't affiliated with Hibernate at all

I see thank you.

How about using r2dbc with envers? I need reactive library with database auditing tool like envers, any database will do, nosql or rdbms

Mark Paluch
@mp911de
Spring Data R2DBC isn't using JPA/Hibernate either.
Fly-Away
@Fly-Away

Spring Data R2DBC isn't using JPA/Hibernate either.

Oohh i see, is there any auditing library for Spring Data R2DBC?

Mark Paluch
@mp911de
Spring Data R2DBC ships with built-in auditing support, that is the created/modified user and date
Fly-Away
@Fly-Away

Spring Data R2DBC ships with built-in auditing support, that is the created/modified user and date

Woah very cool, did it have auto create a revision info table pr some audit table with revision history?

Jiddere Jnr
@chairmo

Some should help me here please, I am unable to post from my the front. this is my code: @Entity
@Getter
@Setter
public class Education extends BaseEntity {

private String school;
private String gradeObtained;
@ManyToOne(fetch = FetchType.LAZY)
private Qualification qualification;
@ManyToOne(fetch = FetchType.LAZY)
private Courses course;

}
@Entity
@Getter
@Setter
public class Qualification {
private String name;
}

//service
@Transactional
@Override
public Education addEducation(Education record) {
return repository.save(record);
}

//json

{ "school": "OAU",
"gradeObtained": "2.2",
"qualification": 4,
"course": 10,
"startDate": "14/10/2001",
"finishDate": "15/12/2019",
"ippis": "4133"
}

Jiddere Jnr
@chairmo
no int/Int-argument constructor/factory method to deserialize from Number value (4); nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance of com.chairmo.staffcadre.model.entities.Qualification (although at least one Creator exists):
Jiddere Jnr
@chairmo
Any help please any
one here
顾凡
@GuideFourthW
@karshil2309
MongoFJMatchId byId = mongoFootMacthIdMapper.findById(mongoEvent.getMatchId());
told me java.lang.NoClassDefFoundError: com/mongodb/connection/QueryResult
my mongodb-driver-core version is 4.0.3
Springboot is 2.3.0
Fly-Away
@Fly-Away

Some should help me here please, I am unable to post from my the front. this is my code: @Entity
@Getter
@Setter
public class Education extends BaseEntity {

private String school;
private String gradeObtained;
@ManyToOne(fetch = FetchType.LAZY)
private Qualification qualification;
@ManyToOne(fetch = FetchType.LAZY)
private Courses course;

}
@Entity
@Getter
@Setter
public class Qualification {
private String name;
}

//service
@Transactional
@Override
public Education addEducation(Education record) {
return repository.save(record);
}

//json

{ "school": "OAU",
"gradeObtained": "2.2",
"qualification": 4,
"course": 10,
"startDate": "14/10/2001",
"finishDate": "15/12/2019",
"ippis": "4133"
}

You can't add qualification as integer and course as integer into Object, you should find the object properties and set into the object, start complete stackoverflow question and share me the link

Jiddere Jnr
@chairmo
@karshil2309 followed the link it talk about removing a maven dependency which i don't have on my classpath.
Iszuhbelle
@iszuhbelle_twitter
image.png
hey guys I need help do I have to generate constructor using fields and getter or setter?
huifer
@huifer
How should I get it PersonRepository from spring
image.png
All I get now are proxy objects. How can I get the proxy objects
Bruno de Queiroz
@bruno.queiroz_gitlab
Hi guys, I'm having a weird problem when trying to setup a spring-boot kotlin application with spring-data-elasticsearch, apparently all annotations under a data class are not working. Have any of you guys experienced that?
but written in kotlin
I know back in the days kotlin had problems dealing with some annotations but afaik spring-data annotations weren't a problem.
Bruno de Queiroz
@bruno.queiroz_gitlab
apparently the problem is in the SimpleReactiveElasticsearchRepository which doesn't extend AbstractElasticsearchRepository therefore the index is not created at the time the repository bean is created, meaning that the properties set in @Document, @Setting, @Field, etc wont work
Bruno de Queiroz
@bruno.queiroz_gitlab
is that assumption correct? :point_up:
Peter-Josef Meisch
@sothawo
@bruno.queiroz_gitlab AbstractElasticearchRepository is the base class for the non-reactive classes. Complete support for reactive classes with index creation with mappings, settings, aliases etc. is available since Spring Data Elasticsearch 4.1.M2, released last week.