A question

classic Classic list List threaded Threaded
2 messages Options
MP
Reply | Threaded
Open this post in threaded view
|

A question

MP
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: A question

Ivan Pavlukhin
Hi Maria,

Yes, it should work with your classes. It worth noting, that
"lastName" will be accessible in your queries, "SELECT lastName FROM
..." should work. Note that you should use simply "lastName" in SQL
but not "general.lastName".

By the way, usually it is better to write such questions to Ignite
users list [hidden email], there you will definitely get the
answer.

вт, 24 сент. 2019 г. в 20:57, Мария Помазкина <[hidden email]>:

>
> Hello!
> Qould you please tell me,
> can I get Embeddable field data by sql query?
> My field is (I need to get lastNamefrow sql query):
>
> @Table(name = "rzd_employee")
> public class EmployeeExtVO implements Serializable {
>
> ...................
>
>     @Embedded
>     @QuerySqlField
>     private GeneralAttrs general;
> ...................
> }
>
> @Embeddable
> public class GeneralAttrs implements Serializable {
>
>    @QuerySqlField
>     private String lastName;



--
Best regards,
Ivan Pavlukhin