X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=runtime%2Forg.argeo.slc.support.jcr%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fjcr%2Fdao%2FAbstractSlcJcrDao.java;h=08c99c6a0d162158508ed69f39642193a98a2ba6;hb=2541d68abde22de8b5e1001d6291a1afb2bbcc09;hp=368ef9e3c27d07ae39e634a83efc6ba042ace56c;hpb=7efacbb6a17cd98979833f3c427ddeb940869d5c;p=gpl%2Fargeo-slc.git diff --git a/runtime/org.argeo.slc.support.jcr/src/main/java/org/argeo/slc/jcr/dao/AbstractSlcJcrDao.java b/runtime/org.argeo.slc.support.jcr/src/main/java/org/argeo/slc/jcr/dao/AbstractSlcJcrDao.java index 368ef9e3c..08c99c6a0 100644 --- a/runtime/org.argeo.slc.support.jcr/src/main/java/org/argeo/slc/jcr/dao/AbstractSlcJcrDao.java +++ b/runtime/org.argeo.slc.support.jcr/src/main/java/org/argeo/slc/jcr/dao/AbstractSlcJcrDao.java @@ -1,9 +1,25 @@ +/* + * Copyright (C) 2007-2012 Mathieu Baudier + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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.argeo.slc.jcr.dao; import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; +import javax.jcr.NamespaceRegistry; import javax.jcr.RepositoryException; import javax.jcr.Session; import javax.jcr.query.Query; @@ -30,6 +46,9 @@ public abstract class AbstractSlcJcrDao { public void init() { nodeMapper = getNodeMapperProvider().findNodeMapper(null); + // JcrUtils.registerNamespaceSafely(session, "slc", + // "http://www.argeo.org/slc/0.12"); + } public void setSession(Session session) {