Many-to-Many example – join table + extra column (Annotation)
Group items matching
in title, tags, annotations or url
4More
4More
Hibernate - Many-to-Many example - join table + extra column (Annotation) - 0 views
18More
JBoss AS7 Deployment Plugin - Deploy/Undeploy Examples - 0 views
-
<plugin> <groupId>org.jboss.as.plugins</groupId> <artifactId>jboss-as-maven-plugin</artifactId> <version>7.1.1.Final</version> </plugin>
- ...15 more annotations...
-
<configuration> <groupId>postgresql</groupId> <artifactId>postgresql</artifactId> <name>postgresql.jar</name> </configuration>
-
<domain> <server-groups> <server-group>main-server-group</server-group> </server-groups> </domain>
53More
Session Management Cheat Sheet - OWASP - 0 views
- ...50 more annotations...
-
meaning and business or application logic associated to the session ID must be stored on the server side
-
create cryptographically strong session IDs through the usage of cryptographic hash functions such as SHA1 (160 bits).
-
defines the exchange mechanism that will be used between the user and the web application to share and continuously exchange the session ID
-
This is one of the reasons why cookies (RFCs 2109 & 2965 & 6265 [1]) are one of the most extensively used session ID exchange mechanisms, offering advanced capabilities not available in other methods
-
should not mix encrypted and unencrypted contents (HTML pages, images, CSS, Javascript files, etc) on the same host (or even domain - see the “domain” cookie attribute)
-
secure.example.com over HTTPS (encrypted) for the private and sensitive contents (where sessions exist)
-
instructs web browsers not to allow scripts (e.g. JavaScript or VBscript) an ability to access the cookies via the DOM document.cookie object
-
instructs web browsers to only send the cookie to the specified directory or subdirectories (or paths or resources) within the web application
-
vulnerabilities in www.example.com might allow an attacker to get access to the session IDs from secure.example.com
-
use non-persistent cookies for session management purposes, so that the session ID does not remain on the web client cache for long periods of time, from where an attacker can obtain it.
1More
UML Class Diagrams Examples - Abstract Factory Design Pattern, Library Management, Onli... - 0 views
1More
Example SQL queries for JIRA - JIRA Community Space - Atlassian Documentation - Confluence - 0 views
9More
Getting Started Developing Applications Guide - JBoss AS 7.1 - Project Documentation Ed... - 0 views
-
displayed using JSF views, business logic is encapsulated in CDI beans, information is persisted using JPA, and transactions can be controlled manually or using EJB
- ...6 more annotations...
-
deploy the example by right clicking on the jboss-as-login project, and choosing Run As -> Run On Server
-
persistence.xml, which sets up JPA, and import.sql which Hibernate, the JPA provider in JBoss AS, will use to load the initial users into the application when the application starts
19More
How do I migrate my application from AS5 or AS6 to AS7 - JBoss AS 7.0 - Project Documen... - 0 views
- ...16 more annotations...
-
if your application uses Hibernate 3 classes that are not available in Hibernate 4, for example, some of the validator or search classes, you may see ClassNotFoundExceptions when you deploy your application. If you encounter this problem, you can try one of two approaches: You may be able to resolve the issue by copying the specific Hibernate 3 JARs containing those classes into the application "/lib" directory or by adding them to the classpath using some other method. In some cases this may result in ClassCastExceptions or other class loading issues due to the mixed use of the Hibernate versions, so you will need to use the second approach. You need to tell the server to use only the Hibernate 3 libraries and you will need to add exclusions for the Hibernate 4 libraries. Details on how to do this are described here: JPA Reference Guide.
-
In previous versions of the application server, the JCA data source configuration was defined in a file with a suffix of *-ds.xml. This file was then deployed in the server's deploy directory. The JDBC driver was copied to the server lib/ directory or packaged in the application's WEB-INF/lib/ directory. In AS7, this has all changed. You will no longer package the JDBC driver with the application or in the server/lib directory. The *-ds.xml file is now obsolete and the datasource configuration information is now defined in the standalone/configuration/standalone.xml or in the domain/configuration/domain.xml file. A JDBC 4-compliant driver can be installed as a deployment or as a core module. A driver that is JDBC 4-compliant contains a META-INF/services/java.sql.Driver file that specifies the driver class name. A driver that is not JDBC 4-compliant requires additional steps, as noted below.
-
<connection-url>jdbc:mysql://localhost:3306/YourApplicationURL</connection-url> <driver-class> com.mysql.jdbc.Driver </driver-class> <driver> mysql-connector-java-5.1.15.jar </driver>
-
<security> <user-name> USERID </user-name> <password> PASSWORD</password> </security>
-
example of the driver element for driver that is not JDBC 4-compliant. The driver-class must be specified since it there is no META-INF/services/java.sql.Driver file that specifies the driver class name.
-
JDBC driver can be installed into the container in one of two ways: either as a deployment or as a core module
-
In AS7 standalone mode, you simply copy the JDBC 4-compliant JAR into the AS7_HOME/standalone/deployments directory
-
example of a MySQL JDBC driver installed as a deployment: AS7_HOME/standalone/deployments/mysql-connector-java-5.1.15.jar
ceefour/arquillian-shiro-example · GitHub - 0 views
74More
Permissions | Apache Shiro - 0 views
- ...69 more annotations...
-
Wildcard Permissions support the concept of multiple levels or parts. For example, you could restructure the previous simple example by granting a user the permission printer:query
-
Multiple Values Each part can contain multiple values. So instead of granting the user both the "printer:print" and "printer:query" permissions, you could simply grant them one: printer:print,query
-
All Values What if you wanted to grant a user all values in a particular part? It would be more convenient to do this than to have to manually list every value. Again, based on the wildcard character, we can do this. If the printer domain had 3 possible actions (query, print, and manage), this: printer:query,print,manage
-
Using the wildcard in this way scales better than explicitly listing actions since, if you added a new action to the application later, you don't need to update the permissions that use the wildcard character in that part.
-
Finally, it is also possible to use the wildcard token in any part of a wildcard permission string. For example, if you wanted to grant a user the "view" action across all domains (not just printers), you could grant this: *:view Then any permission check for "foo:view" would return true
-
printer:*:lp7200
-
domain
-
as the number of permissions assigned to a user or their roles or groups increase, the time to perform the check will necessarily increase
timander/schema-versioning-example · GitHub - 1 views
8More
EclipseLink/Examples/JPA/Inheritance - Eclipsepedia - 0 views
-
@Inheritance(strategy=InheritanceType.JOINED) @DiscriminatorColumn(name="TYPE", discriminatorType=DiscriminatorType.STRING,length=20) @DiscriminatorValue("P")
- ...5 more annotations...
-
@Inheritance(strategy=InheritanceType.SINGLE_TABLE) @DiscriminatorColumn(name="TYPE", discriminatorType=DiscriminatorType.STRING,length=20) @DiscriminatorValue("P")
Bash Shell PS1: 10 Examples to Make Your Linux Prompt like Angelina Jolie - 0 views
63More
Java Persistence/Relationships - Wikibooks, open books for an open world - 0 views
- ...58 more annotations...
-
ProjectType
-
JPA allows a Map to be used for any collection mapping including, OneToMany, ManyToMany and ElementCollection
-
JPA 2.0 allows for a Map where the key is not part of the target object to be persisted. The Map key can be any of the following:
5More
List of E-Books - 0 views
-
Modeling Service Oriented-Architectures: An Illustrated Example using Sparx Systems Enterprise Architect
-
Download the E-book in PDF format Download the E-book, Roadmap, Project Template and Rental Car example as a zip file
-
In our third E-book, author Doug Rosenberg (Founder and President of ICONIX Software Engineering, Inc) presents a practical approach to modeling Service-Oriented Architecture solutions from concept to code.
- ...2 more annotations...
-
50 Enterprise Architect Tricks can help you work with elements, diagrams, tagged values, connectors and many other advanced topics.
3More
In Relation To... Updated OGM kitchensink example - 0 views
-
jboss-as-maven-plugin to deploy the webapp. Unfortunately, this plugin does not allow me to start and stop the server and it seems redundant to require a local install if the Arquillian tests already download an AS instance (yes, I could run the test against the local instance as well, but think for example continuous integration where I want to manage/control the WHOLE ENVIRONMENT).
-
cargo plugin another go. A lot has happened there and it supports not only JBoss 7.x, but it also offers a so called artifact installer which allows to download the app server as a managed maven dependency.
-
cargo:install in the initialize phase to install the app server into the target directory. This way I can install a custom module (via the gmaven plugin) before the tests get executed and/or before I start the application
4More
Implementing RBAC, a practical approach - ServerCare home - 0 views
-
The NIST RBAC model addresses the limitations of RBAC for enterprise-wide deployments, which typically focuses on the increased complexity of managing sufficient roles and assigning adequate role membership within a heterogeneous IT infrastructure
-
Higher management needs to understand that RBAC implementation has a profound impact on the way some parts of the company operate
- ...1 more annotation...
-
For example; certain procedures and workflows will need to be developed (new hire/leaver procedures for example)
12More
shared by kuni katsuya on 01 Sep 12
- No Cached
Managing Project Permissions - JIRA 5.1 - Atlassian Documentation - Confluence - 0 views
confluence.atlassian.com/...Managing+Project+Permissions
security authorization Project Permission PermissionScheme example Jira

-
Individual usersGroupsProject rolesIssue roles such as 'Reporter', 'Project Lead' and 'Current Assignee''Anyone' (e.g. to allow anonymous access)A (multi-)user picker custom field.A (multi-)group picker custom field. This can either be an actual group picker custom field, or a (multi-)select-list whose values are group names.
-
Many other permissions are dependent on this permission
-
example of dependencies *between* permissions. eg, in this case, work-on-issues permission 'needs' browse-projects permission could be expressed as a permission hierarchy where if work-on-issues permission is granted, means/implies that user already has browse-projects permission (w-o-i perm 'subsumes' b-p perm) might imply permission hierarchy
-
- ...8 more annotations...
12More
UML Profile Diagrams Examples - 0 views
-
Java 1.3, EJB 1.1 and most likely UML 1.4, so it could be only of some interest
- ...8 more annotations...