Is it possible to declare java attribute name using specials characters, exemple:
private String var/name;
private int one+one;
I ask this question because I need to retrieve data from DB, whose the name of one colomn is annoces/status, And I need to use sql query (not hql or criteria)
It’s not possible to do that:
I don’t understand why you need that though.
Edit
You can use something like bbr.sendQuery(“Select Status, Name, Annonces/Sta AS annoncesSta, From table “,MyObject.class); with AS you can change the name of the column that you receive in the result. So your attribute in the java class can be “annoncesSta”.
Anyway is wired to have column names with “/”, best practices for names are:
And most mappers handle those names automatically.