Hi to all,
I'm trying to map my beans to a *very* weird and complicated database schema and the annotations are just not enough some times; is it possible to define custom queries for accessing the properties (at this point I'm interested in read only behavior).
I'd like something like
@Entity
{ ...
@MyCustomQuery(....)
public Set getSomething() {}
}
If I'm not mistaken, Hibernate 2.1 allowed a similar definition in the xml.
I'd really like to avoid having to add the query code inside my entity...
Regards
[ January 21, 2008: Message edited by: Alejandro Dominguez ]
I'm trying to map my beans to a *very* weird and complicated database schema and the annotations are just not enough some times; is it possible to define custom queries for accessing the properties (at this point I'm interested in read only behavior).
I'd like something like
@Entity
{ ...
@MyCustomQuery(....)
public Set getSomething() {}
}
If I'm not mistaken, Hibernate 2.1 allowed a similar definition in the xml.
I'd really like to avoid having to add the query code inside my entity...
Regards
[ January 21, 2008: Message edited by: Alejandro Dominguez ]