184 words

Issue #257 - Enhancer option to enhance all persitable types

Feature RequestVersion: 2.6.2Priority: NormalStatus: FixedReplies: 4
#1
2015-06-11 14:16

Hello,

can you add an option to the Class Enhancer to enhance all persistable types and ignore the NON persistable types.

Like the Load Time Enhancement.

btc_es
btc_es's picture
Joined on 2014-10-20
User Post #53
#2
2015-06-12 13:47

A new argument (undocumented yet) was added to the Enhancer in build 2.6.2_06:

> java -cp objectdb.jar com.objectdb.Enhancer -noaware ...

It should exclude enhancing non persistable types (i.e. persistence aware classes) as in using Enhancer Agent.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #2,241
#3
2015-06-15 08:16

Many thanks.

 

We still noticed something that could be a BUG.
Given structure:

com
|- btc
|-   |- base
|-   |-   |- impl
|-   |-   |-   |- Entity1.class
|-   |-   |-   |- NonPersistableClass.class
|-   |-   |-   |- subpackage
|-   |-   |-   |-   |- Entity2.class

 

... com.objectdb.Enhancer -noaware -s com.btc.base.impl.*

Entity1 and Entity2 enhanced as expected.

... com.objectdb.Enhancer -noaware -s com.btc.base.*

Entity1 and Entity2 enhanced as expected.

BUT:

... com.objectdb.Enhancer -noaware -s com.btc.*

Nothing enhanced. This we did not expected.

btc_es
btc_es's picture
Joined on 2014-10-20
User Post #54
#4
2015-06-16 11:14

Is this related to the new -noaware option? If not, please use a new thread.

 

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #2,244
#5
2015-06-23 12:46

It is not related to the new -noaware option. I will use a new thread.

btc_es
btc_es's picture
Joined on 2014-10-20
User Post #55

Post Reply

Please read carefully the posting instructions - before posting to the ObjectDB website.

  • You may have to disable pop up blocking in order to use the toolbar (e.g. in Chrome).
  • Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell checker).
  • To insert formatted lines (e.g. Java code, stack trace) - select a style in the toolbar and then insert the text in the new created block.
  • Avoid overflow of published source code examples by breaking long lines.
  • You may mark in paragraph code words (e.g. class names) with the code style (can be applied by ctrl + D).
  • Long stack traces (> 50 lines) and complex source examples (> 100 lines) should be posted as attachments.
Attachments:
Maximum file size: 32 MB
Cancel