<div dir="ltr"><div>Hi George, <br><br>Every method except getLiteralValue() returns null.<br><br></div>I&#39;m not sure imports can help. If import is on package level there is no way to find which package is the right one.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 18, 2015 at 10:53 PM, George Gastaldi <span dir="ltr">&lt;<a href="mailto:ggastald@redhat.com" target="_blank">ggastald@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi Doychin,<br><br>What happens if you call idClassAnotation.getClassValue() ? Maybe you can iterate through the imports to find out the class name and load it using the ClassLoaderFacet ?<br><br></div>Best Regards,<br><br></div>George Gastaldi<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Tue, Aug 18, 2015 at 3:45 PM, Doychin Bondzhev <span dir="ltr">&lt;<a href="mailto:doychin@gmail.com" target="_blank">doychin@gmail.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">Hi,<br>
<br>
I&#39;m continuing to try to solve the problem with IdClass annotation.<br>
<br>
The problem is that when I get value of annotation with this code:<br>
<br>
AnnotationSource&lt;JavaClassSource&gt; idClassAnotation = entityClass<br>
                         .getAnnotation(IdClass.class);<br>
String valueClassName = idClassAnotation.getLiteralValue();<br>
<br>
I get &quot;className.class&quot;. There is no info about package.<br>
<br>
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 Entity class.<br>
<br>
If I had access to entity class from class loader I can get annotation from class definition and get it&#39;s value.<br>
<br>
Also I need to test primary key class that it implements java.io.Serializable.<br>
<br>
Any suggestion where to look for sample how to solve all the problems mentioned above?<br>
<br>
thanks in advance.<span><font color="#888888"><br>
<br>
-- <br>
Doychin Bondzhev<br>
dSoft-Bulgaria Ltd.<br>
PowerPro - billing &amp; provisioning solution for Service providers<br>
PowerStor - Warehouse &amp; POS<br>
<a href="http://www.dsoft-bg.com/" rel="noreferrer" target="_blank">http://www.dsoft-bg.com/</a><br>
Mobile: <a href="tel:%2B359888243116" value="+359888243116" target="_blank">+359888243116</a><br>
</font></span><br></div></div>_______________________________________________<br>
forge-dev mailing list<br>
<a href="mailto:forge-dev@lists.jboss.org" target="_blank">forge-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/forge-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><span class="HOEnZb"><font color="#888888"><br></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br><div><div dir="ltr"><div><div dir="ltr"><b>George Gastaldi | Senior Software Engineer</b><br><br>JBoss Forge Team<br>T: <a href="tel:%2B55%2011%203524-6169" value="+551135246169" target="_blank">+55 11 3524-6169</a><br>M: <a href="tel:%2B55%2047%209711-1000" value="+554797111000" target="_blank">+55 47 9711-1000</a><br></div></div></div></div>
</font></span></div>
<br>_______________________________________________<br>
forge-dev mailing list<br>
<a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/forge-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br></blockquote></div><br></div>