10

Can I store a date in h2 database using long data type for date field in entity...

 2 years ago
source link: https://www.codeproject.com/Questions/5320545/Can-I-store-a-date-in-h2-database-using-long-data
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Copy Code
I am new to spring boot, working on a project, and recently an experienced developer just told me that when creating an entity table, that has a field that should deal with dates the best approach is to use long, something like this:

   private Long deliveryDate;

The thing is that I have never seen anything being done like this before, I do not understand how this should exactly work, and I couldn't find an answer anywhere I searched for it, so do you think that some of you can help me?


What I have tried:

I looked on the Internet, but I found nothing

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK