Skip to content
This repository has been archived by the owner on Jun 18, 2021. It is now read-only.
/ HelenaORM Public archive

HelenaORM is a simple ORM Mapping Tool for Apache Cassandra based on Hector

License

Notifications You must be signed in to change notification settings

marcust/HelenaORM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HelenaORM is a simple ORM Mapping Tool for Apache Cassandra based on Hector

It is work in progress :).


        final HelenaORMDAOFactory factory = HelenaORMDAOFactory.withConfig(
                "localhost",
                9160, 
                "Keyspace1", SerializeUnknownClasses.YES );
        
        final PublicEvent exampleEvent = new PublicEvent();
        exampleEvent.setName( "Session im Irish Rover" );
        exampleEvent.setDescription( "Gute Irische Livemusik" );
        exampleEvent.setId( UUID.randomUUID() );
        exampleEvent.setUrl( URI.create( "http://www.thiesen.org" ) );
        
        final HelenaDAO<PublicEvent> dao = factory.forClassAndColumnFamily( PublicEvent.class, "Standard1" );
        
        dao.insert( exampleEvent );
        
        System.out.println( "Stored as " + exampleEvent.getId() );

        final PublicEvent publicEvent = dao.get( exampleEvent.getId().toString() );
        
        System.out.println( publicEvent );
        
See org.thiesen.helenaorm.example.Main for more examples.

About

HelenaORM is a simple ORM Mapping Tool for Apache Cassandra based on Hector

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages