Examples of FortuneDAO


Examples of com.example.helloworld.db.FortuneDAO

    @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
Copyright © 2018 www.massapi.com. 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.