No, that is not right. HQL query translates to SQL. The @Transient property @Transient not in the database, so the SQL query cannot query this property.
@Basic and @Transient are conflicting. The first says that "this property is permanent," and the second says, "This property is not permanent."
If you are talking about the Java transient keyword and not the @Transient annotation, then yes, the transient field can be requested and annotated using @Basic . The transient keyword has nothing to do with persistence, only with binary serialization of an object.
source share