cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wei ZHOU <ustcweiz...@gmail.com>
Subject Re: Regarding the variable names in the VOs.
Date Mon, 29 Jul 2013 10:53:16 GMT
AFAIK, The @Colume should be same to the column in database.
The variable concurrentConnections/concurrent_connections should be same to
the responding *DaoImpl.java


2013/7/29 Bharat Kumar <bharat.kumar@citrix.com>

> Hi all,
>
> I am came across a bug which was caused because of using underscore in the
> variable name in the VO.
>
>  @Column(name = "concurrent_connections")
>     Integer concurrent_connections;
>
> because of this the call to update dose not update the VO and if the API
> is used only with this parameter the API server throws an error.
>
> but if i change it to
>
>
>     @Column(name = "concurrent_connections")
>     Integer concurrentConnections;
>
> (remove the underscore)  it works.
>
> Dose any one know why this dependency is there.
>
> Regards,
> Bharat.
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message