Hi Phat,
I can't really see #2 as an option, and think #1 would be the proper way to handle it.
Remember that you need to load the entity prior to editting it, so you must query the entity. I assume you, somehow, would know the DateTime part of the composite key.
If it's not found, then you should create a new one.
Regards,
Silvio.