Sorry about taking so long to get back with you about this one. The initial
email indicated that you guys were seeing a WARN message on enhancement[1],
but does everything seem to be working properly? ie: Using the custom
strategy to persist your field?
Thanks,
Rick
[1] 411 openjpa WARN [mai
Oh sorry thats a typo I meant line 1864 in your
class org.apache.openjpa.meta.ClassMetaData
On Thu, Jul 14, 2011 at 2:01 AM, Rick Curtis wrote:
> Todd -
>
> > This happens on line 164 of the ClassMetaData class in the resolveMeta
> method and I get the following warning.
> I seem to remember for
Todd -
> This happens on line 164 of the ClassMetaData class in the resolveMeta
method and I get the following warning.
I seem to remember for the Cassandra plugin that you implemented (or
extended) the MetaDataRepository. Line 164 doesn't match with any code that
I have. Can you try to test this
Hi, we are getting closer!
We added a strategy the uuid field
@Persistent
@Strategy("com.datastax.hectorjpa.strategy.NoOpHandler")
private UUID id;
So now it successfully enhances the class which now looks like this
@javax.persistence.metamodel.StaticMetamodel
(value=com.spidertracks.aviator.mo
Todd -
I'm stretching a bit here as I've never actually experimented with this
code but I'd start out by looking at
org.apache.openjpa.persistence.jdbc.annotations.NonstandardMappingEntity and
org.apache.openjpa.persistence.jdbc.annotations.TestNonstandardMappingAnnotations.
It appears that y
Hey Rick,
Adding the handler makes the field appear in the field list for my
plugin. However my plugin currently doesn't support value handlers. I
need to add this functionality, what is the best class to use as an
example for reading this meta data and invoking it at runtime?
Thanks,
Todd
On
Todd -
I don't think the problem is that the enhancer skips the field, its the fact
that we don't know how the map the UUID field. You might be able to write a
customer value handler [1] ? Take a look at that and see if it would work
for you.
Let me know how it goes.
[1]
http://openjpa.apache.or
Hey guys,
I'm also involved in this project, I'm the developer for this plugin.
https://github.com/riptano/hector-jpa/
The UUID class is used extensively by quite a few Cassandra developers.
We've successfully used it as an identity, and my plug in recognizes the
data type and can correctly ser
Should your UUID class have an embeddable annotation also?
On Thu, Jul 7, 2011 at 4:27 PM, Matthew Goodson
wrote:
> Hi,
>
> Kevin: We're using maven and it is picking up the Phone_ class and
> generating the warning
>
> here's the link for the uuid class that we're using
>
> https://github.com/st
I think we can ignore the warning about Phone_ for now. The enhancer will
not automatically ignore the MetaModel classes, but it shouldn't be hurting
anything.
I haven't been able to reproduce the other warning. If your project is
available on github please post a link - that might be the quickest
Yeah _ classes don't need to enhanced but the plugin doesn't exclude
them but it doesn't affect the application so I'm not too worried.
Its the Phone.id field that is not being enhanced that's causing my problem.
Thanks
On Fri, Jul 8, 2011 at 9:35 AM, Kevin Sutter wrote:
> Hi Matthew,
> Not sure
Hi Matthew,
Not sure which maven plugin or ant script is being used for your build-time
enhancement, but can it be modified to exclude the generated _
classes? These should not be run through the enhancer.
Also, just to verify... You are generating these _ classes on
purpose, correct? These und
Hi,
Kevin: We're using maven and it is picking up the Phone_ class and
generating the warning
here's the link for the uuid class that we're using
https://github.com/stephenc/eaio-uuid/blob/master/src/main/java/com/eaio/uuid/UUID.java
And the persistence xml...
http://java.sun.com/xml/ns/persist
Why are we attempting to enhance a generated metamodel class?
"class com.spidertracks.aviator.model.user.Phone_"
Classes that end in an underscore were probably generated for the metamodel
and/or criteria API usage. So, something seems out of whack with attempting
to enhance these classes.
Kevi
Can you post your UUID class and the contents of your persistence.xml?
Thanks,
Rick
On Wed, Jul 6, 2011 at 11:09 PM, Matthew Goodson wrote:
> Just adding the class for reference
>
> @Embeddable
> //public class Phone extends EmbeddedUUID implements WebOptionString,
> Serializable {
> public cla
Just adding the class for reference
@Embeddable
//public class Phone extends EmbeddedUUID implements WebOptionString,
Serializable {
public class Phone implements WebOptionString, Serializable {
private static final long serialVersionUID = 1L;
@Persistent
private UUID id;
@Persistent
@NotEmpty
Hi guys. I have a problem with jpa enhancement.
I am using version 2.1.0 and I am trying to get it to enhanced an object
'Phone' with a field 'id' which is of type com.eaio.UUID. However when I run
the enhancement I get the 2 warnings below.
Any ideas?
411 openjpa WARN [main] openjpa.MetaData
17 matches
Mail list logo