tynamo

HibernateEntityValueEncoder NullPointerException

三世轮回 提交于 2020-01-06 12:45:49
问题 I'm using a CRUD framework called Tynamo, which in turn relies on Apache Tapestry and Hibernate. This all works fine, except for when I try to use it for CRUD on a table with a composite/compound primary key. I've decided not to go the @EmbeddedId route, since it seems to not work at all with the framework. That being said, I have been using the @IdClass method, which is mostly working; I think I'm a line or two of code away from success. The issue is that when it starts using reflection to

How to load files/properties from WEB-INF directory?

别等时光非礼了梦想. 提交于 2019-12-24 17:48:50
问题 It seems that in my Tapestry app, I can't load ini files nor properties file from WEB-INF directory or class path. I tried several different methods which should load my file but non of them worked. ex realm.setResourcePath("/WEB-INF/auth.properties"); ex realm.setResourcePath("classpath:wip/pages/auth.properties"); I need to load properties/ini file in order to use tapestry-security module which is based on Shiro. Thanks for help ! 回答1: The root of the classpath is the way to go. Put your

Class xxx does not contain a public constructor needed to autobuild when xxx become a Tapestry Service

别等时光非礼了梦想. 提交于 2019-12-11 15:12:39
问题 I'm discovering the wonderful integration work made by Tynamo's team between Tapestry and Resteasy . I'm trying to activate Liveclass Reloading on webservices. As per doc says : Documentation The only thing you need to do to enable live class reloading for your REST services is to bind them as regular Tapestry IoC services and contribute them to javax.ws.rs.core.Application.class. Read more about how service implementation reloading works in: http://tapestry.apache.org/reload.html Here is an

Swagger UI with Tynamo Resteasy for Tapestry 5.4

早过忘川 提交于 2019-12-11 05:47:25
问题 I am using tynamo resteasy with my Tapestry 5.4 project. I'd like to incorporate Swagger to document and share API with other other teams. While I see that swagger is already in RestEasy's project dependency, it does not work "out of the box" I've added @Api to the "Resource" class (located in /rest/ package) and @ApiOperation to the GET method Do I need to change AppModule or web.xml in anyway to hook the swagger UI? Is there an example (github etc.) anywhere that I can follow? Also, will