spring-data-orientdb icon indicating copy to clipboard operation
spring-data-orientdb copied to clipboard

Spring Template for OrientDB

Open vidakovic opened this issue 10 years ago • 10 comments

  • OrientObjectTemplate
  • OrientDocumentTemplate
  • OrientGraphTemplate (?)

@trainings implementation provides support for OrientObjectTemplate. OrientDocumentTemplate should not be too hard. Please chime in if you have more requirements/thoughts concerning template support.

See also notes from @corneil https://github.com/orientechnologies/spring-data-orientdb/issues/4#issuecomment-67184134

vidakovic avatar Dec 17 '14 14:12 vidakovic

I download spring-data-orientdb project and able to use Object Repository,template etc use case. Can anyone share the implementation for OrientGraphTemplate pls

socialsandy80 avatar Dec 23 '15 11:12 socialsandy80

How to write code for Graph template like we have for OrientObjectTemplate ?? below class getting issue while creating the constructor, what need to be passed in case of Graph template

public class OrientObjectTemplate extends AbstractOrientOperations<Object> implements OrientObjectOperations {

public OrientObjectTemplate(OrientObjectDatabaseFactory dbf) {
    super(dbf);
}

@Override
public OObjectDatabaseTx getObjectDatabase() {
    return (OObjectDatabaseTx)dbf.db();
}

socialsandy80 avatar Dec 23 '15 11:12 socialsandy80

Hi guys.

I had a hard year :( And I did not have enough time to do it.

Are you still interested in Spring Data for OrientDB?

trainings avatar Dec 23 '15 13:12 trainings

Hey sorry to hear you had hard year.. Anyway we are done with this year. Yes, i want to use Spring data for DAO. As of now i am following same concept for Graph what is being used for OrientObject. While writing OrientGraphTemplate not able to initiate, using OrientGraphFactory as parameter. it will be great if you can help. Happy Christmas to all of you..

socialsandy80 avatar Dec 23 '15 15:12 socialsandy80

I am able to perform execute all function of repository except save. i have one pojo when i save it return some RID but dont show up in graph and it change sequence of cluster also. let say if i create customer from ui , it show #33:1,#33:2 etc but when i save it show #3:8 .. i knew something is wrong but couldnt find out. can you pls help

socialsandy80 avatar Jan 01 '16 09:01 socialsandy80

I had plans to contribute to the graph module starting with the template aswell, but had a lot on my plate last weeks, so i couldn't get started. I'm a bit more available now, so if i can be of any help @socialsandy80, just say so.

Since your last comment was a week ago, I don't know if you are still having the same issue with the RID.

saljuama avatar Jan 08 '16 19:01 saljuama

Thanks Saljuama, I have written one already.. i will be sharing by next week. I am able make spring-data support for OrientDB Yes, i got it resolved

socialsandy80 avatar Jan 09 '16 17:01 socialsandy80

Hi,

I think the graph implementation in spring-data-orientdb is still not completed. We are very much interested in using this.

@saljuama @socialsandy80, i see you have already implemented that. Is that something that you can share?

ritesh0919 avatar Jun 09 '16 05:06 ritesh0919

Since @socialsandy80 mentioned that he had the features implemented, I didn´t get my hands dirty on this matter, so sadly, I don´t have an implementation for it.

saljuama avatar Jun 09 '16 22:06 saljuama

Hi to all, if someone want to contribute back some code, fell free to open a PR

robfrank avatar Aug 19 '16 16:08 robfrank