Hibernate Search as MBean
by Giuseppe Bonaccorso
Hi,
I'd like to use hibernate as mbean in jboss, however my current implementation needs hibernate search too and .
Do you know a way to specify such attributes inside jboss-service.xml ?
Thanks,
GB
16 years, 8 months
accent insensitive query.
by CARLOS MATE DE ANTA
Hi.
I use hibernate and Oracle 10.
My source code for search :
Criteria criteria = session.createCriteria(tabla.getClass());
Example example = Example.create(tabla).ignoreCase();
criteria.add(example);
ScrollableResults cursor = criteria.scroll();
In my bd I have:
TABLE_COLUMN
até
ATE
ATÉ
ate
If i find by "ate" string I obtain ate and ATE but I also want to obtain até and ATÉ
¿how can I do that?
In oracle using regexp_like and alter session set NLS_SORT I can do that but with hibernate i don't know.
Thanks
16 years, 9 months
Extended sessions and (lack of) recovery from Hibernate exceptions (ie: validation)
by Vallon, Justin
Suppose a field has a validator, and the field is made invalid (age <
0). When flushing, the validator runs, and throws an exception. The
exception handling section
(http://www.hibernate.org/hib_docs/v3/reference/en/html_single/#transact
ions-demarcation-exceptions) states that if any method throws an
exception, the session must be closed.
So, what to do if session-per-conversation is used? If hibernate
validation is used, then flush of invalid data corrupts the session -
the application then needs to ask the user to start over, or else build
complex recovery logic (new session, copy data to new session).
How does hibernate validation interact with extended sessions?
-Justin
office 8-383-6725, 212-272-6725; cell 917-861-6042
***********************************************************************
Bear Stearns is not responsible for any recommendation, solicitation,
offer or agreement or any information about any transaction, customer
account or account activity contained in this communication.
***********************************************************************
16 years, 9 months