Questions tagged [apache-cayenne]

Apache Cayenne is an open source persistence framework, providing object-relational mapping (ORM) and remoting services.

Cayenne seamlessly binds one or more database schemas directly to Java objects, managing

  • atomic commit and rollbacks
  • SQL generation
  • joins
  • sequences

and more. With Cayenne's Remote Object Persistence, those Java objects can even be persisted out to clients via Web Services.

Full details and documentation can be found at http://cayenne.apache.org

132 questions
0
votes
1 answer

PSQLException on heroku

I use java, apache-cayenne and postgreSQL. My app works fine on desktop, but I get an error when I run it on Heroku: org.postgresql.util.PSQLException: Bad value for type timestamp/date/time: {1} there are also warnings: INFO…
Ivan Terekh
  • 13
  • 1
  • 5
0
votes
1 answer

using CayenneRuntime in webapplication without web.xml

I have a Wicket application and I'm trying to implement separate configuration that can be changed remotely. That's the end goal, anyway. What I'm trying to do is set up Cayenne to work by starting it manually, rather than using the web.xml file. …
adprocas
  • 1,863
  • 1
  • 14
  • 31
0
votes
1 answer

Why I've a cayenne connection error when I put my web site on a debian server

I'm trying to put my web site on line. For that, I've a debian and a jetty server. When I try to go on my web site, it show my the homepage, so, this is ok. But, when I try to log in, it put me an error message. It's working on my local machine…
Bob
  • 529
  • 1
  • 7
  • 28
0
votes
1 answer

Select Custom data with Cayenne return empty lines

I'm trying to select data from 2 diff mysql tables: SELECT SUM(TIMESTAMPDIFF(HOUR, startdatetime, enddatetime)), SUM(TIMESTAMPDIFF(HOUR, startdatetime, enddatetime) * hourly), SUM(CASE WHEN TIME(startdatetime) BETWEEN '06:00:00'…
Bob
  • 529
  • 1
  • 7
  • 28
0
votes
1 answer

Best practice to manage Apache Cayenne "...project.xml" file

Apache Cayenne keeps a "...project.xml" file within the resources directory. This file contains the password to the database. This is a problem because the [deployment server] password should not visible to developers. Further, it would need to be a…
ikevin8me
  • 4,253
  • 5
  • 44
  • 84
0
votes
1 answer

Apache Cayenne "DI container has no binding for key ObjectContextFactory" error

I'm using Apache 4.0 BETA and I'm getting the following runtime error: org.apache.cayenne.di.DIRuntimeException: DI container has no binding for key at…
ikevin8me
  • 4,253
  • 5
  • 44
  • 84
0
votes
1 answer

Apache cayenne - cdbimport task restores PK Generation strategy do default

I have a problem with PK generation strategy in cayenne. I'm using PostgreSQL 9.6 with Apache Cayenne 4.0.B1. This is my table in postgres: create table ui_template ( id varchar(50) primary key default uuid_generate_v1(), path varchar(300) not…
Anton Lee
  • 684
  • 4
  • 10
0
votes
1 answer

How to turn off logs for Apache 4.0 (BETA 1)?

After upgrading to Cayenne 4 BETA 1, I'm getting lots of logs. How do I turn them off? For example: org.apache.cayenne.log.Slf4jJdbcEventLogger logBeginTransaction org.apache.cayenne.log.Slf4jJdbcEventLogger logCommitTransaction ... etc. (I…
ikevin8me
  • 4,253
  • 5
  • 44
  • 84
0
votes
1 answer

Problems upgrading to Apache Cayenne 4.0 BETA 1

I've just upgraded to Apache Cayenne 4.0 BETA 1 and I'mm getting these errors: java.io.StreamCorruptedException: invalid stream header It looks like they are spewed out by calling "org.apache.cayenne.Cayenne.objectForPK" and…
ikevin8me
  • 4,253
  • 5
  • 44
  • 84
0
votes
1 answer

Error table.auto_pk_support when I try to save a value in my table

I've another issue (seems to be the same thing as : stored procedure 'auto_pk_for_table' not found) But I put auto-increment and unique index for the ID and 'Database-Generated' in the primary key with my auto-increment field, See : public abstract…
Bob
  • 529
  • 1
  • 7
  • 28
0
votes
1 answer

My query return a null list instead of one entry

I'm trying to get my user from the table : I saved this values via a form (so the cayenne configuration seems to be good). the UserInfoFactory class is : public class UserInfoFactory extends _UserInfo implements Serializable { private static…
Bob
  • 529
  • 1
  • 7
  • 28
0
votes
1 answer

How do I write an Expression that will filter an Entity with an empty to-many relationship?

I have the following structure: Invoice <->> LineItem How do I write an Expression that will query the database for all the Invoice objects that do not have any related LineItem objects? There is no Invoice.LINE_ITEMS.isEmpty() and…
David Avendasora
  • 4,538
  • 1
  • 16
  • 15
0
votes
1 answer

Why I don't have the good behavior when I select a grid with Vaadin?

I'm working on Vaadin, I'm trying to print data in a grid. I want to select this data. Previously I wanted to edit the data but it seems to be before the edit.[I took a look to :…
Bob
  • 529
  • 1
  • 7
  • 28
0
votes
1 answer

stored procedure 'auto_pk_for_table' not found

I don't know why I received the error : org.apache.cayenne.CayenneRuntimeException: [v.4.0.M5 Feb 24 2017 07:47:55] Commit Exception [...] Caused by: java.sql.SQLException: Procédure stockée 'auto_pk_for_table' introuvable. [...] I'm using Cayenne…
Bob
  • 529
  • 1
  • 7
  • 28
0
votes
1 answer

Errors after upgrading to Milestone 5 release of Apache Cayenne 4.0

I just upgraded to Apache Cayenne 4.0 M5 and I got the following error: Exception in thread "main" java.lang.NoClassDefFoundError: javax/cache/CacheManager at org.apache.cayenne.jcache.JCacheModule.configure(JCacheModule.java:44) at …
ikevin8me
  • 4,253
  • 5
  • 44
  • 84
1 2 3
8 9