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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T14:07:44+00:00 2026-06-01T14:07:44+00:00

I want to try out Joda Time with Play Framework 2.0. So I have

  • 0

I want to try out Joda Time with Play Framework 2.0. So I have this class called Release:

@Entity
public class CommunicationLog extends Model {

private static final long serialVersionUID = 7846963755390952329L;

@Id
public int pk;

public Task taskRef;

public String comment;

@Type(type = "org.joda.time.contrib.hibernate.PersistentDateTime")
public DateTime createdDate;

public Person personRef;

}

In this post ( Persist Joda-time's DateTime via Hibernate ), I have read to use joda-time-hibernate. So I add this to my dependencies with SBT and it downloads the jar file and adds it to my classpath:

"joda-time" % "joda-time-hibernate" % "1.3"

But the problem remains that the @Type cannot be resolved. I need to add also org.hibernate.annotations and hibernate core to my classpath? Why is this not part of JPA 2.0? Or do I miss something else in my project?

EDIT 2012-05-07 : SOLVED WITH

It works when I add the following dependencies:

"org.hibernate" % "hibernate-core" % "3.5.6-Final",
"org.hibernate" % "hibernate-annotations" % "3.5.6-Final",
"joda-time" % "joda-time-hibernate" % "1.3"
  • 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-01T14:07:46+00:00Added an answer on June 1, 2026 at 2:07 pm

    Yes, you must add org.hibernate.annotations to your classpath.
    @Type is part of Hibernate logic (Custom UserType), it’s not a logic of JPA.
    So you must mix JPA annotations with Hibernate annotations

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

Sidebar

Related Questions

I try to read out all existing calendars. I want have a HashMap with
So, I've got something I want to try out. The idea is to have
I want to try out a small, custom ValueConverter in a class which after
I want to try out the example code from this article: Load Recovery.gov Grant
Because I want to try out another extension I would have two extensions which
I want to try out vim, but have a little trouble with the config
If I want to try out something new in Ruby or Javascript, I love
To see what I want, check out the regex I'm using. I'll try to
I want to get the difference between two Java Date objects. I've used Joda-Time
Here is the website I want to try out. http://www.csun.edu/ Under myNorthRidge Portal, there

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.