Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8102525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:15:49+00:00 2026-06-05T23:15:49+00:00

I have tried to create a simple controller/model (based on the samples code of

  • 0

I have tried to create a simple controller/model (based on the samples code of play 2.0)
and got a message concerning evolution of DB:

Database 'default' needs evolution!

An SQL script will be run on your database - "Apply this script now"

1 # --- Rev:1,Ups - fbdc2fd
2 create table group (
3 id                        bigint not null,
4 name                      varchar(255),
5 description               varchar(255),
6 due_date                  timestamp,
7 constraint pk_group primary key (id))
8 ;
9 
10 create sequence group_seq;

But when clicking on the button, i have got the below error message:

Database 'default' is in inconsistent state!

An evolution has not been applied properly. Please check the problem and resolve it manually before making it as resolved 

We got the following error: SQLステートメントに文法エラーがあります "CREATE TABLE GROUP[*] ( ID BIGINT NOT NULL, NAME VARCHAR(255), DESCRIPTION VARCHAR(255), DUE_DATE TIMESTAMP, CONSTRAINT PK_GROUP PRIMARY KEY (ID)) "; 期待されるステートメント "identifier" Syntax error in SQL statement "CREATE TABLE GROUP[*] ( ID BIGINT NOT NULL, NAME VARCHAR(255), DESCRIPTION VARCHAR(255), DUE_DATE TIMESTAMP, CONSTRAINT PK_GROUP PRIMARY KEY (ID)) "; expected "identifier"; SQL statement: create table group ( id bigint not null, name varchar(255), description varchar(255), due_date timestamp, constraint pk_group primary key (id)) [42001-158] [ERROR:42001, SQLSTATE:42001], while trying to run this SQL script:

 1# --- Rev:1,Ups - fbdc2fd
2
3 create table group (
4 id                        bigint not null,
5 name                      varchar(255),
6 description               varchar(255),
7 due_date                  timestamp,
8 constraint pk_group primary key (id))
9 ;
10
11 create sequence group_seq;

My configuration file

#DB setting
db.default.driver=org.h2.Driver
db.default.url="jdbc:h2:mem:play"

# Ebean configuration
ebean.default="models.*"

My controller

public class Application extends Controller {

    /**
     * 
     * @return
     */
  public static Result index() {

      Group g = new Group("New group Test","This is a test !");
      g.save();

    return ok(index.render("Render page"));
  }

}

And finally my model:

@Entity
public class Group extends Model {

    public static Finder<Long,Group> find = new Finder (Long.class, Group.class);

    @Id
    public Long id;

    @Required
    public String name;

    @Required
    public String description;

    @DateTime(pattern = "MM/dd/yy")
    public Date dueDate;


    /**
     *  ToString method
     */
    public String toString() {
        return "Group(" + id + ") in project " + name;
        }


    /**
     *  Constructor
     * @param name
     * @param description
     */
    public Group(String name, String description){
            this.name=name;
            this.description=description;
    }

}

has someone encounter the same problem ?
Thank you !

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T23:15:50+00:00Added an answer on June 5, 2026 at 11:15 pm

    It could be that the name of your table (group) is the problem, as it is an SQL keyword. Try quoting the table name (“group”) or test what happens if you use a different table name.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have tried to create sample webservices helloworld in Java using Jersey and Tomcat
I have created a small and simple android app. I tried installing it on
I have tried with ado.net create table columnName with unique name. as uniquename I
Have anybody ever tried to create thumbnails/previews of MS Office files? I do not
I have tried FBConnect for iPhone and am able to create/manage sessions and upload
Hi I want to create a JSON array. I have tried using: JSONArray jArray
Just tried writing a simple validates_presence_of in my model, and when the errors try
I have a very simple model that includes the auto-filled field much like 'created'.
I have a simple cakephp form WITH validation that submits to a database. It
I have a simple model for a contract: public class Contract { public int

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.