This is what I know so far:

In org.jasig.cas.services.AbstractRegisteredService:

ID is harcoded to INITIAL_IDENTIFIER_VALUE, but there's an annotation 
supposedly to get an automatic ID value from the database:

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private long id = RegisteredService.INITIAL_IDENTIFIER_VALUE;

When submitting a new service, this is the logic at 
org.jasig.cas.services.JpaServiceRegistryDaoImpl:

        final boolean isNew = registeredService.getId() == 
RegisteredService.INITIAL_IDENTIFIER_VALUE;

        if (!isNew) {
            this.entityManager.persist(r);
        }

So, it only persists the object when it's ID is different from 
INITIAL_IDENTIFIER_VALUE. But it's always that value, so it will never persist.

What am I missing??
-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to