my dog learned polymorphism*
The moose likes Beginning Java and the fly likes Why it put NULL valuse in my field? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Why it put NULL valuse in my field?" Watch "Why it put NULL valuse in my field?" New topic

Why it put NULL valuse in my field?

Elahe Shafie
Ranch Hand

Joined: Dec 12, 2001
Posts: 291
Hi Friends,
Do you have any idea why if I enter "00/00/0000"
to the fldFixedDate after run following code it will put NULL on my table istead of 00-00-0000?
Any advice to solve it?
Many thanks,

Kyle Brown
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
Because there is no such date as 0-00-0000. That's a meaningless date.

Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at for other WebSphere information.
Younes Essouabni
Ranch Hand

Joined: Jan 13, 2002
Posts: 479
Hi Kyle,
The link you provided to your homepage doesn't work.

By constantly trying one ends up succeeding. Thus: the more one fails the more one has a chance to succeed.
I agree. Here's the link:
subject: Why it put NULL valuse in my field?
Similar Threads
Please solve my java.lang.NullPointerException error.?
shift operator
integers again?!
problem while insert date data in mysql
Why does JPA change a datetime value from "0000-00-00 00:00:00" to null?