Sculptor is an open source productivity tool. You express your design intent in a textual DSL, from which Sculptor generates high quality Java code and configuration.
Service PlanetService { String sayHello(String planetName) throws PlanetNotFoundException; } Entity Planet { gap scaffold String name key Long population min="0" Long diameter min="0" nullable -Set<@Moon> moons opposite planet Repository PlanetRepository { findByKey; } }
public String sayHello(ServiceContext ctx, String planetName) throws PlanetNotFoundException { Planet planet = getPlanetRepository().findByKey(planetName); return planet.greeting(); }
No comments:
Post a Comment