cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Reich <markus.re...@markusreich.at>
Subject Re: Cayenne+jasper reports
Date Fri, 31 Oct 2014 05:49:09 GMT
Hi René,

yes you can access a connection

e.g.
public static Connection getConnection() throws Exception {
    return
((DataContext)getObjectContext()).getParentDataDomain().getDefaultNode().getDataSource().getConnection();
  }

2014-10-31 3:30 GMT+01:00 René Aravena <rene.aravena@gmail.com>:

> With cayenne 3.1, as I can get the connection to the database to pass it to
> jasperreports?
>
> René
>



-- 
*Markus Reich*
Waldweg 62
6393 St. Ulrich am Pillersee
www.markusreich.at / www.meeximum.at
markus.reich@markusreich.at

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message