(no commit message)
[utils] / security / usermgt / src / main / java / org / wamblee / security / authorization / AbstractAuthorizationService.java
index 79b9d3d0df5b8a55ef0c1cf52f8b7fadb87d55a1..2cbc4367497aa8c54085d2b54a0c6bade7bbf7b5 100644 (file)
@@ -12,7 +12,7 @@
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */ 
+ */
 package org.wamblee.security.authorization;
 
 import javax.persistence.DiscriminatorColumn;
@@ -36,42 +36,40 @@ import javax.persistence.Version;
 @Table(name = "SEC_AUTH_SVC")
 @Inheritance(strategy = InheritanceType.SINGLE_TABLE)
 @DiscriminatorColumn(name = "TYPE")
-@NamedQueries( 
-    @NamedQuery(name = AbstractAuthorizationService.QUERY_FIND_BY_NAME, 
-        query = "select s from AbstractAuthorizationService s where s.name = :" +
-        AbstractAuthorizationService.NAME_PARAM)
-        )
-public abstract class AbstractAuthorizationService implements AuthorizationService {
+@NamedQueries(@NamedQuery(name = AbstractAuthorizationService.QUERY_FIND_BY_NAME, query = "select s from AbstractAuthorizationService s where s.name = :" +
+    AbstractAuthorizationService.NAME_PARAM))
+public abstract class AbstractAuthorizationService implements
+    AuthorizationService {
+
     public static final String QUERY_FIND_BY_NAME = "AuthorizationService.findByName";
     public static final String NAME_PARAM = "name";
-    
+
     @Id
     @GeneratedValue(strategy = GenerationType.AUTO)
     private Long id;
 
     @Version
     private int version;
-    
+
     /**
      * Name for this instance of the authorization service.
      */
-    private String name; 
-    
-    public AbstractAuthorizationService() { 
-        // Empty. 
+    private String name;
+
+    public AbstractAuthorizationService() {
+        // Empty.
     }
-    
-    public AbstractAuthorizationService(String aName) { 
-        name = aName; 
+
+    public AbstractAuthorizationService(String aName) {
+        name = aName;
     }
-    
-    public AbstractAuthorizationService(AbstractAuthorizationService aSvc) { 
+
+    public AbstractAuthorizationService(AbstractAuthorizationService aSvc) {
         id = aSvc.id;
         version = aSvc.version;
         name = aSvc.name;
     }
-    
+
     public String getName() {
         return name;
     }