1 Reply Latest reply on Jun 24, 2004 9:21 AM by cvandyck

    Milliseconds and MySQL

    alexander.kirsch

      Hallo!

      I'am using JBoss 3.2.4 with MySQL 4.0 on Windows 2000.

      My Problem is to store dates in the MySQL via CMP Entity Beans without losing the millisecond granularity. It would be a good solution is to store the dates as long value in the database, but how can I do this in a transparent way without changing the Code of my EntityBeans?

      Thank you very much

      Alexander Kirsch

        • 1. Re: Milliseconds and MySQL
          cvandyck

          If you are going to need to be able to access these values through CMP, you MUST change your code. Unless there's something I'm missing here, all you will need to do will be to just add another CMP field to your entity bean and then set your long value in your ejbCreate() method for that entity.