Package com.example.helloworld.db

Examples of com.example.helloworld.db.WorldDAO


    }

    @Override
    public void run(HelloWorldConfiguration config, Environment environment) {
        environment.jersey().register(new JsonResource()); // Test type 1: JSON serialization
        environment.jersey().register(new WorldResource(new WorldDAO(hibernate.getSessionFactory()))); // Test types 2, 3 & 5: Single database query, Multiple database queries & Database updates
        environment.jersey().register(new FortuneResource(new FortuneDAO(hibernate.getSessionFactory()))); // Test type 4: Fortunes
        environment.jersey().register(new TextResource()); // Test type 6: Plaintext
    }
View Full Code Here

TOP

Related Classes of com.example.helloworld.db.WorldDAO

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.