public class CreateRoles extends Object
Modifier and Type | Field and Description |
---|---|
static String |
persistenceUnitName
This name will be used to configure the EntityManagerFactory
based on the corresponding name in the
META-INF/persistence.xml file
|
Constructor and Description |
---|
CreateRoles() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] argv)
For each role name, checks if a Role object with that name
already exists in the database, and if not, creates it.
|
public static final String persistenceUnitName
public static void main(String[] argv) throws IllegalInputException
Usage:
java edu.rutgers.md.sqltools.CreateRoles user1:password1 [user2:password2 ....]
IllegalInputException