[forge-dev] I need to get @IdClass value as Class instance
doychin at gmail.com
Tue Aug 18 14:45:17 EDT 2015
I'm continuing to try to solve the problem with IdClass annotation.
The problem is that when I get value of annotation with this code:
AnnotationSource<JavaClassSource> idClassAnotation = entityClass
String valueClassName = idClassAnotation.getLiteralValue();
I get "className.class". There is no info about package.
Also Class Loader facet has no access to classes defined in the project.
Only to external classes. At least I was not able to load for example
If I had access to entity class from class loader I can get annotation
from class definition and get it's value.
Also I need to test primary key class that it implements
Any suggestion where to look for sample how to solve all the problems
thanks in advance.
PowerPro - billing & provisioning solution for Service providers
PowerStor - Warehouse & POS
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 268 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/forge-dev/attachments/20150818/4b447425/attachment-0001.vcf
More information about the forge-dev