ebean Questions

5

Recently I began using Play framework 2.3.8. However update of model is I am in trouble without work well. By the way, save method works. Update does not work with code like the following. (It w...
Engird asked 7/3, 2015 at 14:29

5

Solved

I'm trying to make a query where I want to check if either the email or name of a user starts with a given string. In a sql query I would write this using name like 'queryString%' or email like '...
Enameling asked 30/8, 2012 at 5:56

3

I built play framework project jar with sbt assembly command. when I run the jar with Java -jar "jarName.jar" it throws error "No root server path supplied" any suggestions ?

2

On Heroku using Play V2. Everything works fine when tested locally, but then when I deploy to Heroku and attempt to save to a PostgreSQL database I get the following error. In my Procfile I have t...
Rutger asked 3/4, 2012 at 18:23

4

Solved

Fundamental question: Why aren't @Embedded objects always instantiated? The interesting observation is that Ebean does not instantiate @Embedded objects if those do not contain basic datatypes (in...
Casework asked 28/11, 2012 at 13:30

0

I have an application based on play framework scala version 2.11.1. There are couple of methods for which I want to add unit tests. These methods have direct calls to database through Ebean. I tr...
Ethics asked 11/3, 2019 at 16:24

2

Solved

I want to use pagination in my application. Here is simple example: public static List<MyClass> getPage(int page, int size) { PagedList<MyClass> findPagedList = Ebean.find(MyClass.cla...
Elmaleh asked 3/9, 2015 at 16:1

3

Solved

I've been using Avaje.org ebean ORM layer for a while, but I don't understand how to enable the byte-code enhancement functionality described in the "Ebean v2.6.0 User Guide" with Maven. I found a...
Macmillan asked 16/8, 2012 at 22:46

4

Solved

How to display SQL Statements in the log ? I'm using EBeans and it fails to insert for some reasons but I can't see what's the problem. I tried to edit my config to: db.default.logStatements=true...
Poltroon asked 14/6, 2015 at 10:28

1

I am running Java Play framework version v2.6.1 and using Ebean for persistence. My intention is to get bean caching going using play2-memcached plugin. What have I done so far? installed memcac...
Unbound asked 22/8, 2017 at 17:0

4

I'm using an ebean query in the play! framework to find a list of records based on a distinct column. It seems like a pretty simple query but the problem is the ebean method setDistinct(true) isn't...
Gingery asked 20/10, 2013 at 0:10

1

Solved

I got a problem while trying to search a specific Java object in a list. Actually i got the search function i want working for another Java class. Now i tried it for a different one but inst...
Fracas asked 24/5, 2017 at 12:50

2

I'm hoping someone with more Ebean expertise than myself can help me with an erratic issue I'm troubleshooting now. The environment: Java 1.7.0_17 MySQL 5.5 Play Framework 2.1.1 (however I've ...
Walczak asked 10/12, 2013 at 17:45

3

Solved

I am building an application using the latest version of Play!. When defining a Finder( as in Model.Finder) my IDE gives me a warning Finder is deprecated. I can't find any information in the docum...
Blurt asked 10/6, 2015 at 16:4

2

Solved

I'm using Ebean with the Play 2 Framework and got two models: a user model and a book model. The user model is connected with the book model in a OneToMany Relationship. So every user can have many...
Marcille asked 18/1, 2014 at 9:50

3

Solved

I want to examine what SQL statements are generated by Ebean to find out why certain exceptions (related to SQL syntax) are occurring in my Play 2.0 application. Is there a way to log the SQL state...
Heiskell asked 15/3, 2012 at 12:22

5

We are setting up a slightly complicated project using Play Framework 2.0.3. We need to access several databases (pre-existing) and would like to do it using the frameworks built-in facilities (ie...
Benzoyl asked 30/8, 2012 at 16:15

2

Solved

I have a simple model in Play Framework 2, and I would like to specify a default value to be inserted on a specify INT column if none is provided when the INSERT is performed. Model: @Entity @Tab...

0

I'm using Scala with Ebean, and I've run into some serious trouble. The situation is quite simple, I have a parent entity: @Entity case class Person(@(PrivateOwned@field) @(OneToOne@field)(fetch...
Eleemosynary asked 29/4, 2016 at 15:47

3

We are going to write a service for which we are trying to evaluate technology stack. So as part of ORM we are thinking of using hibernate but from one of my colleague I came to know abt ebean. But...
Hord asked 19/6, 2014 at 19:24

4

I'm relatively new to Play framework, I tried following the cookbook but it seems to be already outdated. Anyways I just want to know if there's a big difference between those I have mentioned. S...
Hegyera asked 30/12, 2013 at 9:41

3

I am using Ebean and I need to end up getting "on delete cascade" as DDL (data definition language) - which annotation does that? I tried @OneToMany(cascade=CascadeType.REMOVE) but that gives "...
Ergocalciferol asked 12/11, 2012 at 16:12

10

Solved

I'm new to Play framework. I'm trying to configure MySQL database as a datasource to be used with Play Ebeans. Could you some one please explain the steps that are needed to configure MySQL with ...
Oftentimes asked 4/4, 2012 at 7:56

2

Solved

I don't want to define the default database configuration in the application.conf file. Instead, I want to construct the default EbeanServer programmatically and inject it myself into the DAO. The...
Hartz asked 18/12, 2015 at 7:47

2

I have an Play2 application using eBean integrated with PostgreSQL database. Basically I have a model TripRequest that as a list of Passengers . The use case is "A trip has several passengers". F...
Tanguay asked 23/10, 2015 at 21:10

© 2022 - 2024 — McMap. All rights reserved.