This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/main by this push:
     new 2457d202ddf Fix acquire console session issue (#7558)
2457d202ddf is described below

commit 2457d202ddf80dca9252bc06476895fe923eaa3b
Author: Nicolas Vazquez <[email protected]>
AuthorDate: Thu May 25 22:50:45 2023 -0300

    Fix acquire console session issue (#7558)
    
    * Fix acquire console session issue
    
    * Refactor
---
 engine/schema/src/main/java/com/cloud/vm/ConsoleSessionVO.java | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/engine/schema/src/main/java/com/cloud/vm/ConsoleSessionVO.java 
b/engine/schema/src/main/java/com/cloud/vm/ConsoleSessionVO.java
index 53e98226db8..81a11241e4b 100644
--- a/engine/schema/src/main/java/com/cloud/vm/ConsoleSessionVO.java
+++ b/engine/schema/src/main/java/com/cloud/vm/ConsoleSessionVO.java
@@ -27,6 +27,8 @@ import javax.persistence.GeneratedValue;
 import javax.persistence.GenerationType;
 import javax.persistence.Id;
 import javax.persistence.Table;
+import javax.persistence.Temporal;
+import javax.persistence.TemporalType;
 
 @Entity
 @Table(name = "console_session")
@@ -56,6 +58,7 @@ public class ConsoleSessionVO {
     private long hostId;
 
     @Column(name = "acquired")
+    @Temporal(value = TemporalType.TIMESTAMP)
     private Date acquired;
 
     @Column(name = "removed")

Reply via email to