Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] probloem with static weaving and eclipselink @transient

We weave more than just relationships. There are a whole sequence of things we weave. Without an idea of what the whole source of Category (and DBObject) is and exactly what is happening in your application that gets you to the point where the value is different all we can do is guess what is happening. The more information you can post, the more likely you are to get relevant help.

On 23/05/2013 8:49 AM, steffen.herter@xxxxxx wrote:
there is no weaved code inside the abstract class DbObject because there is no onetoone or manytoone relation.
The class Category has a manytoone relation. But the weaved code is in the associated class.

Mit freundlichen Grüssen / With best regards
Steffen Herter
Finanzen, Controlling, IT ZF-Konzern/Finance, Controlling, IT ZF Group
Informatik ZF-Konzern/Information Technology ZF Group
FC Engineering Applikationen ZF-Konzern/FC Engineering Application ZF Group

ZF Friedrichshafen AG
D-88038 Friedrichshafen, Deutschland/Germany
Telefon/Phone +49 -7541 77-8801, Telefax/Fax +49 7541 77-908801
mailto:steffen.herter@xxxxxx
Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Prof. Dr. Giorgio Behr
Vorstand/Board of Management: Dr. Stefan Sommer (Vorsitzender/CEO), Dr. Konstantin Sauer, Jürgen Holeksa, Michael Hankel, Wilhelm Rehm, Rolf Lutz
Sitz/Headquarters: Friedrichshafen
Handelsregistereintrag Amtsgericht Ulm HRB 630206/Trade register of the municipal court of Ulm HRB 630206


-----Ursprüngliche Nachricht-----
Von: eclipselink-users-bounces@xxxxxxxxxxx [mailto:eclipselink-users-bounces@xxxxxxxxxxx] Im Auftrag von Tom Ware
Gesendet: Donnerstag, 23. Mai 2013 14:43
An: EclipseLink User Discussions
Betreff: Re: [eclipselink-users] probloem with static weaving and eclipselink @transient

Any decompiler should be able to decompile your weaved class file.  If you can't tell by looking at it, please post the decompiled source.

On 23/05/2013 8:38 AM, steffen.herter@xxxxxx wrote:
Don't know!

Mit freundlichen Grüssen / With best regards Steffen Herter Finanzen,
Controlling, IT ZF-Konzern/Finance, Controlling, IT ZF Group
Informatik ZF-Konzern/Information Technology ZF Group FC Engineering
Applikationen ZF-Konzern/FC Engineering Application ZF Group

ZF Friedrichshafen AG
D-88038 Friedrichshafen, Deutschland/Germany Telefon/Phone +49 -7541
77-8801, Telefax/Fax +49 7541 77-908801 mailto:steffen.herter@xxxxxx
Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board:
Prof. Dr. Giorgio Behr Vorstand/Board of Management: Dr. Stefan Sommer
(Vorsitzender/CEO), Dr. Konstantin Sauer, Jürgen Holeksa, Michael
Hankel, Wilhelm Rehm, Rolf Lutz
Sitz/Headquarters: Friedrichshafen
Handelsregistereintrag Amtsgericht Ulm HRB 630206/Trade register of
the municipal court of Ulm HRB 630206


-----Ursprüngliche Nachricht-----
Von: eclipselink-users-bounces@xxxxxxxxxxx
[mailto:eclipselink-users-bounces@xxxxxxxxxxx] Im Auftrag von Tom Ware
Gesendet: Donnerstag, 23. Mai 2013 14:31
An: eclipselink-users@xxxxxxxxxxx
Betreff: Re: [eclipselink-users] probloem with static weaving and
eclipselink @transient

Can you tell what is wrong by decompiling your weaved classes?

On 23/05/2013 4:06 AM, steffen.herter@xxxxxx wrote:
Hello,

Infrastructure:

Java 1.7

Eclipselink 2.4

JPA 2.0.1

Tomcat 7

Problem:

Activated Static weaving in my Application with Maven:

<build>

<plugins>

<plugin>

<artifactId>_eclipselink_-_staticweave_-_maven_-_plugin_</artifactId>

<groupId>au.com.alderaan</groupId>

<version>1.0.4</version>

<executions>

<execution>

<goals>

<goal>weave</goal>

</goals>

<phase>install</phase>

<configuration>

<logLevel>ALL</logLevel>

<includeProjectClasspath>true</includeProjectClasspath>

</configuration>

</execution>

</executions>

<dependencies>

<dependency>

<groupId>org.eclipse.persistence</groupId>

<artifactId>_eclipselink_</artifactId>

<version>2.4.0</version>

</dependency>

</dependencies>

</plugin>

</plugins>

</build>

Superclass:

@MappedSuperclass

*abstract**public**class*DbObject

{

.

/** indicates if the object is valid (e.g. successfully loaded from
database) or not **/

@Transient

*private**boolean*valid= *true*;

.

}

Class:

@Entity

*public**class*Category *extends*DbObject

{

.

}

In My Manmged bean i've the following output with and without weaving:

1.

weaving *inactive*

is Category valid?:*true*

2.

weaving *active*

is Category valid?:*false*

**

*the valid variable is never been touched!*

**

*What I the cause for the change of the valid varible when weaving is
activated???*

Thanks and regards steffen



_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users

_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users

_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users



Back to the top