| 1 |
|
package org.trails.component; |
| 2 |
|
|
| 3 |
|
import org.apache.tapestry.IAsset; |
| 4 |
|
import org.apache.tapestry.annotations.Asset; |
| 5 |
|
import org.apache.tapestry.annotations.ComponentClass; |
| 6 |
|
import org.trails.descriptor.IIdentifierDescriptor; |
| 7 |
|
import org.trails.hibernate.HasAssignedIdentifier; |
| 8 |
|
|
| 9 |
|
@ComponentClass(allowBody = true, allowInformalParameters = false) |
| 10 |
0 |
public abstract class HibernateIdentifier extends Identifier |
| 11 |
|
{ |
| 12 |
|
|
| 13 |
|
@Asset(value = "/org/trails/component/Identifier.html") |
| 14 |
|
public abstract IAsset get$template(); |
| 15 |
|
|
| 16 |
|
public boolean isEditable() |
| 17 |
|
{ |
| 18 |
0 |
return !((IIdentifierDescriptor) getDescriptor()).isGenerated() && !((HasAssignedIdentifier) getModel()).isSaved(); |
| 19 |
|
} |
| 20 |
|
} |