facebook

Hibernate Pojo generation – timestamp issue

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #249292 Reply

    nalla_kasi
    Member

    Hi
    when My DB contains Timestamp Filed its not generating timestamp type.. its thinking it is as String..
    Hope some one helps me
    Thanks

    #249331 Reply

    Brian Fernandes
    Moderator

    Nalla,

    On page 2 of the RE Wizard, did you enable timestamp and version generation? This was added in ME version 4.1.1.

    Could you please answer all questions asked here: Posting Guidelines

    Best,
    Brian.

    #249394 Reply

    kasinath
    Member

    yes i did. but still it didn’t work out.

    #249399 Reply

    Brian Fernandes
    Moderator

    Please post the DDL for the table you are experiencing issues with so that we can try and replicate your case locally.
    Also answer all the relevant questions at the Posting Guidelines link above.

    Brian.

    #249403 Reply

    kasinath
    Member

    Hi
    Plz look into the table script

    create table “CLINORDER”.”CLINICAL_ORDER”(
    “CLINICAL_ORDER_ID” NUMBER(22) PRIMARY KEY not null,
    “ORDERABLE_EXPRESSION_TXT” VARCHAR2,
    “ORDER_ENTRY_SESSION_ID” VARCHAR2,
    “CREATED_DTS” TIMESTAMP(6) not null,
    “LAST_MODIFIED_DTS” TIMESTAMP(6) not null)

    #249418 Reply

    Haris Peco
    Member

    kasinath,

    MyEclipse reverse engeneering will make timestamp if column name is ‘timestamp’ (no some column with timestamp type) – if table have version and timestamp column name then myeclipse will make version.

    Best regards

    #249479 Reply

    kasinath
    Member

    Hi
    Thanks For the feed back. We can’t change our column name to time stamp..

    I have one more question abt timestamp..

    You can select the table and select the field then you can specify what is the property name and its type.. in Last step.. but it in HBM file its showing timestamp but in POJO’s its showing as date Instead of Timestamp. can you please have a look into it.
    thanks
    kasinath

    #249486 Reply

    Haris Peco
    Member

    kasinath,

    This is bug.I will file this and we will fix in future releases

    Thanks for reporting this

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: Hibernate Pojo generation – timestamp issue

You must be logged in to post in the forum log in