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 8018253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T21:05:25+00:00 2026-06-04T21:05:25+00:00

I am creating a domain class in my grails application.This is my domain class

  • 0

I am creating a domain class in my grails application.This is my domain class

class StatTiming {

Date startTime
Date endTime
Date date
double percentageOnTariff
AutoPosting autoPosting
Status status

static constraints = {
    startTime(nullable:false)
    endTime(nullable:false)
    date(nullable:false)
    percentageOnTariff(nullable:false)
    autoPosting(nullable:false)
    status(nullable:false)
}

enum Status{ACTIVE,INACTIVE}
enum AutoPosting{SERVICE_CHARGE,STAT_CHARGES,BOTH}

}

Its working fine in hsqldb, but when i change database to Oracle its failed to create the table. I need to work in Oracle not hsqldb. An error is generated called “ORA-00904: : invalid identifier”. Can anyone please tell me what is the problem here?

  • 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-04T21:05:27+00:00Added an answer on June 4, 2026 at 9:05 pm

    The problem is most likely with the field named date. That’s a reserved word in Oracle.

    (But without seeing the exact query, this is just a guess.)

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

Sidebar

Related Questions

Lets say I have a domain class named Tag in my Grails application. class
Can someone tell me why this Grails domain class will not compile (at runtime)?
I am creating a domain class named HOLIDAY in grails.I need to have a
I'm building a WPF application and while creating my domain model I used ObservableCollection<T>
I'm attempting to add a method to a grails domain class, e.g. class Item
I'm working on a grails legacy project. A domain class called User exists. It
I am working on creating some grails domain objects dynamically and then adding them
I have a class in my domain model called JobPlan this class is stored
I'm seeing some unexpected behavior in Grails' createCriteria. I have a domain class that
I have a domain class that needs to have a date after the day

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.