Giter Club home page Giter Club logo

orientdb's People

Contributors

mfornos avatar tazmaniax avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

orientdb's Issues

Problem injecting OGraphDB

There's a bug in the order of injection evaluation. OGraphDb must be evaluated before DocumentTx in DatabaseSource:

public <T> T getBeanOfType(Class<T> clazz) {
        if (ODatabaseObjectTx.class.isAssignableFrom(clazz)) {
            return (T) objectDB;
        } else if (OGraphDatabase.class.isAssignableFrom(clazz)) {
            return (T) documentDB;
        } else if (ODatabaseDocumentTx.class.isAssignableFrom(clazz)) {
            return (T) graphDB;
        } else {
            return null;
        }
    }

Updated to orientdb-rc9

Hi Marc,

I have cloned a copy of your source and tried to update the play module to orientdb rc9.

However, I cannot get the compiled modules to be used as locally for testing. I have tried to create a local repository as specified in the play documentation but there are some path issues which caused Model class problems on my system.

Can I commit my code so that you can take a quick look and test on your system? I have no idea how to do this in git (sorry!). Basically what I have done is

  1. Copied all the rc9 jar files from orientdb distribution into /lib.
  2. Changed dependencies.yml to "self: play -> orientdb 0.1.2"
  3. Changed all references of OObjectIteratorMultiCluster to OObjectIteratorCluster.
  4. Upcast the classes to Object and downcast them to OObjectIteratorCluster in OModelLoader.java:
  • return toList((OObjectIteratorCluster) (Object)ODB.openObjectDB().browseClass(field.getType()) );
  • return toList((OObjectIteratorCluster) (Object)ODB.openObjectDB().browseClass(fieldType));
    Notice the (Object) casting before re-casting to (OObjectIteratorCluster). If this is not done, it will throw a inconvertible type exception - a known bug in java for some time:
    http://weblogs.java.net/blog/carcassi/archive/2010/04/09/two-problems-generics-java-0

    ant build was fine.

    Please let me know what I should do :D I really really want my play project to work with rc9 or even 1.0 if it is released! :D

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.