0

I'm working in a new project to convert our Delphi + Firebird system to Java 8 / JavaFX / JPA (Hibernate) and Firebird. We are using the latest version of Jaybird and connecting to Firebird 1.5, Firebird 3.0 and InterBase XE3 databases. I have not found any documentation on connecting to the DB specifying a DB role. Is there a way to do this?

Mark Rotteveel
  • 100,966
  • 191
  • 140
  • 197

1 Answers1

0

To specify the user role, you need to specify the roleName property in the connection string. See also Extended connection properties in Jaybird JDBC Driver Java Programmer's Manual.

Example of a connection string:

jdbc:firebirdsql://localhost/database?charSet=UTF-8&roleName=myrole
Mark Rotteveel
  • 100,966
  • 191
  • 140
  • 197