Hibernate hbm2ddl.auto create-drop doesn't seem to work in 10.3 JPA

Greetings,
I'm migrating an JPA application from JBoss 5.0 to WebLogic 10.3. In order to simplify the problem, I have the following entity:
package fr.simplex_software.p204.domain;
import java.io.Serializable;
import javax.persistence.*;
@Entity
@Table(name="AUTHOR")
public class Author implements Serializable
private static final long serialVersionUID = 1L;
@Id
@Column(name="AUTHOR_ID", nullable=false)
@GeneratedValue(strategy=GenerationType.AUTO)
private Long id;
public Long getId()
return id;
public void setId(Long id)
this.id = id;
I also have the following persistence.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
<persistence-unit name="p204-ejbPU" transaction-type="JTA">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>java:/jdbc/TestDS</jta-data-source>
<exclude-unlisted-classes>false</exclude-unlisted-classes>
<properties>
<property name="hibernate.hbm2ddl.auto" value="create-drop"/>
</properties>
</persistence-unit>
</persistence>
When I deploy the application in JBoss 5.0, the table AUTHOR is created. When I deploy the same in WebLogic 10.3, the table isn't created and nothing happens. Should I do anything of special ?
Many thanks in advance for any help.
Kind regards,
Nicolas

Hi Matt, thanks for your reply. Yes, I did. Actually I'm testing the JDBC data-source in WebLogic console and the test is successfull. Also, exactly the same app correctly deploys in JBoss. In the WebLogic console I can see my EAR deployed, I'm running some standalone clients against some SLSB in the EAR and they work properly and I'm sure that if I'm manually creating the data-model, the JPA entities will work. The only thing which doesn't seem to work is the automatically data-model creation. I thought that Hibernate may not be so intimatelly integrated with WebLogic as with JBoss and I tried to use Kodo, but I didn't find any auto create-drop equivalent feature. I continue digging but stiil interested by any suggestion, if any.
Many thanks in advance,
Nicolas

Similar Messages

  • Pdfmark code in MS Word 2008 doc doesn't seem to work properly to create Named Destination

    Hi all,
    I've been having trouble with creating Preview-compatible Named Destinations in Acrobat 9.x (see http://forums.adobe.com/thread/770470?tstart=0).  Distiller, on the other hand, appears to create compatible Destinations, so as a last-ditch effort, I tried to go back to my original source file (Microsoft Word 2008 document) to use Distiller's pdfmark functionality, to see if maybe I could finally get a PDF with Preview-compatible Destinations.
    Following instructions found elsewhere on this forum, I went into Word and inserted the following field into a test location in my document:
    PRINT "[ /Dest /testdest /View [ /XYZ null null null ] /DEST pdfmark"
    This field code is supposed to then cause a pdfmark to be inserted into the resulting PostScript and/or PDF files.  Distiller is supposed to understand this and turn it into a Named Destination called "testdest."  However, it doesn't seem to work - I don't see the pdfmark code in the PS file, and the PDF file doesn't have any Named Destinations in it.
    I'm using Acrobat 9.x on Mac OS X 10.6.5, so I tried this two different ways:
    1) Using the "Print to Adobe PDF" workflow (which replaced the "Adobe PDF Printer" from previous OS/Acrobat versions) - this automatically generates a PDF via (presumably) an API call to Distiller... and
    2) Using the "Print to Postscript" workflow to generate a PS file, which I then ran through Adobe Distiller.
    In neither case did I end up with a named destination in the PDF file, as I was supposed to.  In case #2, even the Postscript file didn't have a pdfmark embedded in it.  Thus, I'm assuming that perhaps this is particular issue may be a problem with MS Word 2008 rather than with Acrobat... but I'm hoping someone might have a clue as to how to fix it.
    I welcome ideas on how to get Word 2008 to properly output pdfmark code, so that Distiller will pick it up and properly embed a Named Destination into the PDF...
    Thanks in advance.
    (If anyone has ideas about the Preview-compatible problem, linked above, that would also be great!)

    You're suggesting that it was never fixed from Word 2004 to 2008?  Possibly.  I wonder if it's fixed in Word 2011?  Anyone know?  But is it really a Word problem, rather than a Distiller issue?
    I appreciate your offer, though I do have access to Word on Windows (2003, I think), so I could try Distilling there... I only worry about formatting, since there are minor differences (e.g. font kerning, etc.) between Mac and Windows that are subtle, but sufficient to create formatting issues for very long documents (e.g. pushing figures onto the wrong pages, etc.).  That would be a rather big problem.
    The question remains whether this is an issue with Word or Distiller, though... and whether it's fixed in Distiller X and/or Word 2011.
    Adobe, care to comment?
    I'd really love to find a proper Mac solution, if one exists... it would be rather a slap to Mac users if a solution doesn't exist.

  • Can a use a partitioned external hard drive to create a disk image? I tried, doesn't seem to work using disk manager.

    Can a use a partitioned external hard drive to create a disk image? I tried, doesn't seem to work using disk manager.

    OK, it's very bad computing to use a backup disk for anything but a backup. The reason being is if/when the HD crashes you will have lost not only all your backup but the data files. While I commend you for wanting redundant backup, you really need separate EHDs for doing so. Format each EHD using Disk Utility to Mac OS Extended (Journaled) using the GUID parttition. When you connect, OS X will ask if you want to use that drive as a Time Machine backup drive, select yes and then let it backup. On the second EHD format the same way however do not use TM as a backup, this time I'd suggest an app such as SuperDuper or Carbon Copy Cloner to make a clone of the internal HD. Leave both EHDs connected and TM will backup new or changed files automatically on a hourly basis. The clone you will need to set to backup on the schedule you want. For example I have my SuperDuper EHD set to backup only changed or updated files at 2AM every day.
    The advantage of a clone is that if the computers internal HD crashes you can boot from a clone and continue working, TM will not do that but it's great for keeping an archive of all files. So if you want a version of a file from many months ago, TM will help you locate and restore it.

  • 2013 Workflows created in SharePoint Designer doesn't seems to work with retension policy!

    Hi Guys, 2013 Workflows created in SharePoint Designer doesn't seems to work with retension policy but 2010 workflows work. Any One have any details resaon or workarround?
    Shafqat Balouch MCT, MCSA, MCSE MCITP, MCPD, Microsoft Partner

    Hi  ,
    According to your description, I can reproduce your scenario in my SharePoint 2013.
    For the Retention Policy, it will schedule how content is managed and disposed by specifying a sequence of retention stages. In SharePoint Designer Workflow 2013, we have looping option available. You can
    use loop option and then pause for duration for achieving same function as Retention Policy to start a workflow.
    Reference:
    http://prasadtechtactics.blogspot.com/2012/07/sharepoint-designer-2013-workflows-part_24.html
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
    contact [email protected]
    Eric Tao
    TechNet Community Support

  • Help! Divs extend beyond parent container! Clearing doesn't seem to work!

    My "mainContent" div extends beyond the "Container" div. It seems that I've tried everything--clearing doesn't seem to work.
    Help!
    Here is my css:
    @charset "UTF-8";
    /* CSS Document */
    body  {
         margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
         padding: 0;
         text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
         color: #000000;
         font-family: Arial, Helvetica, sans-serif;
         font-size: 100%;
         background-color: #FFF;
    .twoColFixRtHdr #container {
         width: 960px;  /* using 20px less than a full 800px width allows for browser chrome and avoids a horizontal scroll bar */
         background: #FFFFFF;
         text-align: left; /* this overrides the text-align: center on the body element. */
         font-family: Arial, Helvetica, sans-serif;
         margin-top: 0;
         margin-right: auto;
         margin-bottom: 0;
         margin-left: auto;
         top: 10px;
         padding-top: 10px;
         clear: both;
    .twoColFixRtHdr #header {
         height: 180px;
         padding-top: 10px;
         padding-right: 0px;
         padding-bottom: 5px;
         padding-left: 0px;
         border-top-width: 1px;
         border-right-width: 0px;
         border-bottom-width: 5px;
         border-left-width: 0px;
         border-top-style: solid;
         border-bottom-style: solid;
         border-top-color: #999;
         border-bottom-color: #000;
         margin-top: 5px;
         margin-bottom: 0px;
    .twoColFixRtHdr #container #sidebar1 img {
         padding-top: 10px;
         border-bottom-width: 1px;
         border-bottom-style: solid;
         border-bottom-color: #999;
         margin-bottom: 0px;
         padding-bottom: 10px;
         padding-left: 10px;
    .twoColFixRtHdr #header h1 {
         margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */
         padding: 10px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
    .twoColFixRtHdr #sidebar1 {
         width: 315px;
         padding: 0px;
         top: 200px;
         float: right;
    .twoColFixRtHdr #mainContent {
         width: 643px;
         padding-top: 10px;
         border-right-width: 1px;
         border-right-style: solid;
         border-right-color: #999;
         overflow: hidden;
         top: 230px;
         position: absolute;
         clear: right;
    .twoColFixRtHdr #footer {
         background:#DDDDDD;
         top: 50px;
         clear: both;
         padding-top: 0;
         padding-right: 10px;
         padding-bottom: 0;
         padding-left: 20px;
    .twoColFixRtHdr #footer p {
         margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
         padding: 10px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
    .fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
         float: right;
         margin-left: 8px;
    .fltlft { /* this class can be used to float an element left in your page */
         float: left;
         margin-right: 8px;
    .clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
         clear:both;
         height:0;
         font-size: 0px;
         line-height: 0px;
    .spacer { 
         clear: both; 
    .twoColFixRtHdr #container #mainContent #article_main_head {
         font-family: Arial, Helvetica, sans-serif;
         top: 10px;
         width: 635px;
         float: left;
    .twoColFixRtHdr #container #mainContent #article_img {
         width: 630px;
         float: left;
         margin-top: 10px;
         clear: both;
    .twoColFixRtHdr #container #mainContent #article_main_txt {
         float: right;
         width: 450px;
         clear: both;
         padding-top: 10px;
         height: 500px;
    .twoColFixRtHdr #container #mainContent #article_main_pq {
         clear: both;
         float: left;
         width: 180px;
         margin-top: 100px;
    Here is my html:
                                                                   Donec eu mi sed turpis feugiat feugiat. Integer turpis arcu, pellentesque  eget, cursus et, fermentum ut, sapien. Fusce metus mi, eleifend  sollicitudin, molestie id, varius et, nibh. Donec nec libero. 
    Loading news. please wait...                                   
    Loading news. please wait...                    
    Loading news. please wait...            
          Footer 

    This CSS sends up a red flag:
    .twoColFixRtHdr #mainContent {
         width: 643px;
         padding-top: 10px;
         border-right-width: 1px;
         border-right-style: solid;
         border-right-color: #999;
         overflow: hidden;
    /******DELETE THE FOLLOWING*****/
         top: 230px;
         position: absolute;
         clear: right;
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • I'm using iphoto9.1.3 but now it doesn't seem to work, whenever I try to open it, it just shows loading, but never loads. Can anybody help me with this ?

    I'm using iphoto9.1.3 but now it doesn't seem to work, whenever I try to open it, it just shows loading, but never loads. Can anybody help me with this ?    

    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • How to reflect db changes - Verify Database doesn't seem to work

    I have changed a database (MS SQL Server) column from varchar 255 to varchar 1000, but the designer doesn't pick up the change.
    I read that db changes can be picked up by using 'Verify Database' feature. It doesn't seem to work for us though. Is there any configuration to turn on for the feature to work properly or any work-around to refresh the database changes?
    We are making the database connection using JDBC (JNDI) option since the report is being used in a Java web application.
    Any comments or insights will be very much appreciated!

    Hi Wallie,
    Thank you very much for your reply! Here are the answers to your questions.
    Are you able to create a new report off the modified database?
    ==> Yes.
    Do new reports see the changes made to the database?
    ==> No.
    Are the reports connecting directly to the database table, or is it a stored procedure, business view, universe being used?
    ==> Through a business view.
    By the way, after trying so many things, I was able to figure out the reason. Since the report is using a view, not directly the table, the view itself had to be recompiled to reflect the table changes so that the view could pass the changes to the report. It was a very good thing to know. Your last question could have been a very helpful insight for this issue! Thank you so much again!

  • Oraenv doesn't seem to work

    Version : 11.2.0.3
    Platform : Oracle Linux 6.3
    oraenv doesn't seem to work as shown below. I haven't set ORACLE_SID in the .bash_profile as this server is going to have multiple DBs in future. So, I need to use oraenv script to set env variables.
    Trying to source oraenv file.
    $ . oraenv
    ORACLE_SID = [oracle] ?
    Ideally, it should prompt the SID listed in /etc/oratab file. So, in this case it should be something like
    $ . oraenv
    ORACLE_SID = [oracle] ? GRCFMS
    Here are the contents of my /etc/oratab file and .bash_profile
    # su - oracle
    $
    $
    $
    $
    $
    $
    $ whoami
    oracle
    $ pwd
    /home/oracle
    $ cat .bash_profile
    # .bash_profile
    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
            . ~/.bashrc
    fi
    # User specific environment and startup programs
    #PATH=$PATH:$HOME/bin
    #export PATH
    export ORACLE_BASE=/u01/app/oracle
    export ORACLE_HOME=/u01/app/oracle/product/11.2.0.3/dbhome_1
    #export LD_LIBRARY_PATH=$ORACLE_HOME/lib
    export PATH=$PATH:$ORACLE_HOME/bin:/usr/bin:/bin
    $
    My oratab file
    $ cat /etc/oratab
    # This file is used by ORACLE utilities.  It is created by root.sh
    # and updated by either Database Configuration Assistant while creating
    # a database or ASM Configuration Assistant while creating ASM instance.
    # A colon, ':', is used as the field terminator.  A new line terminates
    # the entry.  Lines beginning with a pound sign, '#', are comments.
    # Entries are of the form:
    #   $ORACLE_SID:$ORACLE_HOME:<N|Y>:
    # The first and second fields are the system identifier and home
    # directory of the database respectively.  The third filed indicates
    # to the dbstart utility that the database should , "Y", or should not,
    # "N", be brought up at system boot time.
    # Multiple entries with the same $ORACLE_SID are not allowed.
    GRCFMS:/u01/app/oracle/product/11.2.0.3/dbhome_1:N
    $
    $
    $

    Max wrote:
    Version : 11.2.0.3
    Platform : Oracle Linux 6.3
    oraenv doesn't seem to work as shown below. I haven't set ORACLE_SID in the .bash_profile as this server is going to have multiple DBs in future. So, I need to use oraenv script to set env variables.
    Trying to source oraenv file.
    $ . oraenv
    ORACLE_SID = [oracle] ?
    Ideally, it should prompt the SID listed in /etc/oratab file. So, in this case it should be something like
    $ . oraenv
    ORACLE_SID = [oracle] ? GRCFMS
    Here are the contents of my /etc/oratab file and .bash_profile
    # su - oracle
    $
    $
    $
    $
    $
    $
    $ whoami
    oracle
    $ pwd
    /home/oracle
    $ cat .bash_profile
    # .bash_profile
    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
            . ~/.bashrc
    fi
    # User specific environment and startup programs
    #PATH=$PATH:$HOME/bin
    #export PATH
    export ORACLE_BASE=/u01/app/oracle
    export ORACLE_HOME=/u01/app/oracle/product/11.2.0.3/dbhome_1
    #export LD_LIBRARY_PATH=$ORACLE_HOME/lib
    export PATH=$PATH:$ORACLE_HOME/bin:/usr/bin:/bin
    $
    My oratab file
    $ cat /etc/oratab
    # This file is used by ORACLE utilities.  It is created by root.sh
    # and updated by either Database Configuration Assistant while creating
    # a database or ASM Configuration Assistant while creating ASM instance.
    # A colon, ':', is used as the field terminator.  A new line terminates
    # the entry.  Lines beginning with a pound sign, '#', are comments.
    # Entries are of the form:
    #   $ORACLE_SID:$ORACLE_HOME:<N|Y>:
    # The first and second fields are the system identifier and home
    # directory of the database respectively.  The third filed indicates
    # to the dbstart utility that the database should , "Y", or should not,
    # "N", be brought up at system boot time.
    # Multiple entries with the same $ORACLE_SID are not allowed.
    GRCFMS:/u01/app/oracle/product/11.2.0.3/dbhome_1:N
    $
    $
    $
    if in fact you did exactly as posted above, the su - oracle established a new process which knows nothing about the previous invocation of oraenv
    BTW - never use OS "root" when dealing with Oracle DB

  • Bridge Offset Nulling Doesn't Seem to Work With SCC-SG24

    Does anyone know if the DAQmx "Perform Bridge Offset Nulling Calibration" vi works with the SCC-SG24 modules?  We have used our NI-9237 module in the past to acquire dual-channel load cell (thrust & torque) measurements, and calling that vi does a fine job of zeroing out the values before applying the load.  However, it doesn't seem to work when we try to take the same measurements using an SCC-SG24 module.
    We are able to zero the values manually, by using the nulling resistors and potentiometers in the SCC-SG24.  But, whether the nulling resistors are installed or not, we are not able to zero the values using the "Perform Bridge Offset Nulling Calibration" vi.  Running that vi does induce a significant offset in the values, but it is not the correct offset needed to bring the values to zero.  For example, with no load applied, a torque reading before running the vi may be +1090 in-lbs, and be "zeroed" to -465 in-lbs after running the vi.  Running the vi multiple times (to check repeatability) always brings us back to approximately -465 in-lbs.
    An additional issue (not sure if it's related or not) is that if we try to run this vi to offset just one of the channels in the task (such as just thrust, but not torque) it will still induce a small offset in the other channel, which doesn't seem right.
    I guess I'm not clear on whether the subject vi is performing an operation on the hardware, the software, or both, so I'm not sure whether the SCC-SG24 modules may not be compatible with this vi?
    Thanks for any help you can provide.

    Hello Dhruser1,
    I think that the DAQmx Perform Bridge Offset Nulling Calibration should work for the SCC-SG24 module.  Take a look at this article:  Removing Large Initial Offset for Load Cell or Strain Measurements with SCXI-1520 or PXI-4220 in particular it mentions that using this VI in addition to the auto zero can introduce an offset.  If you're doing both these is likely the cause.
    Also, when you specify specific channels using the channels input are you also setting the "skip unsupported channels to false?  If not this may be why it affects other channels.
    I hope this helps, and if not please feel free to post back with an update after trying these things.
    Cheers,
    Brooks

  • SQL Batch doesn't seem to work; How to eager-fetch related objects?

    Hi,
    I have two technical questions with Kodo.
    1. SQL Batch doesn't seem to work. I have tried batch size of -1, 0, 1, 25.
    But the performance from batch creating objects is not affected by batch
    size.
    kodo.jdbc.DBDictionary: BatchLimit=25
    2. How to use custom fetch groups to eagerly fetch related persistable
    objects? Example only showed attributes, not relationships.
    Enviroment:
    * Kodo 3.1.0 RC1
    * Oracle 9i release 1.
    Qingshan Luo
    Senior Software Engineer
    Open Harbor
    1123 Industrial Road
    San Carlos, CA 94070
    Phone: 650-413-4251
    Fax: 650-413-4298

    try poracle 10g driver. At least they fixed terrible CLOB bug may be batch
    to. BTW 9.2.x has problem with batching with deferred constraints so be
    careful
    "Greg Campbell" <[email protected]> wrote in message
    news:c3dmnu$rmj$[email protected]..
    >
    "Qingshan Luo" <[email protected]> wrote in message
    news:c3dg7q$mdl$[email protected]..
    Hi,
    I have two technical questions with Kodo.
    1. SQL Batch doesn't seem to work. I have tried batch size of -1, 0, 1,25.
    But the performance from batch creating objects is not affected by batch
    size.
    kodo.jdbc.DBDictionary: BatchLimit=25You may be running into a bug in the Oracle 9.2 driver. That driverdoesn't
    reliably give update counts when using batching and prepared statement
    caching. By default, Kodo will turn off batching. You can manuallyenable
    batching by setting the BatchLimit on your DBDictionary, as you've done.If
    you do this, though, you may want to turn off prepared statement cachingby
    setting MaxCachedStatements to 0 (see
    http://www.solarmetric.com/Software/Documentation/3.1.0RC1/docs/ref_guide_dbsetup.html#ref_guide_dbsetup_builtin).
    >
    2. How to use custom fetch groups to eagerly fetch related persistable
    objects? Example only showed attributes, not relationships.You can find information on setting up eager fetching of relations at
    http://www.solarmetric.com/Software/Documentation/3.0.3/docs/ref_guide_
    perfpack_eager.html
    Basically, you'll need to add the relations to your fetch group, and
    set the eager fetching mode.
    Enviroment:
    * Kodo 3.1.0 RC1
    * Oracle 9i release 1.
    Qingshan Luo
    Senior Software Engineer
    Open Harbor
    1123 Industrial Road
    San Carlos, CA 94070
    Phone: 650-413-4251
    Fax: 650-413-4298

  • SetAutoCreateColumnsFromModel doesn't seem to work...

    I've been coding a game server browser in Java, and have gotten pretty far with it. However, I'm running into a slight problem. I want to be able to align certain cells to my own specifications, as well as size columns myself. In order to accomplish this, I don't want the table to automatically display columns. Therefore, I have attempted to use jtbServers.setAutoCreateColumnsFromModel(false);. The only problem is that it doesn't seem to work...maybe it works only after-the-fact, but what the following code results in is twice the columns.
         // Server Table
         private JScrollPane guiServers()
              // Sets up the table headers
              Object objColumn[] = {"Server", "Address", "Players", "IWAD", "PWAD", "Map", "Ping"};
              // Sets up the Data Table Model
              dtmServersData = new DefaultTableModel(objColumn, 0)
                   public boolean isCellEditable(int a, int b)
                        return false;
              // Sets up the table itself
              jtbServers = new JTable(dtmServersData);
              jtbServers.setAutoCreateColumnsFromModel(false);
              TableColumn column;
              for(int i = 0; i < objColumn.length; i++)
                   column = new TableColumn(i);
                   column.setHeaderValue(objColumn);
                   jtbServers.addColumn(column);
              // Slaps a scroll bar on it
              jspServers = new JScrollPane(jtbServers);
              return jspServers;
    Any idea what I'm doing wrong?

    I want to be able to align certain cells to my own specifications, as well as size columns myselfWell, there is no reason you can't let the table create the TableColumnModel normally and then use the setAutoCreateColumnsFromModel(...) method. Then you would customize the TableColumns.
    maybe it works only after-the-fact,I would say this is the case. This method is handy when you need to reset the table with a "refreshed" TableModel. Say you have a query from a database that will always return the same data and number of columns. When you refresh the table using the setModel(...) method, then the default behaviour would be to recreate the TCM. However, if you've already customized the TCM then you would use the setAutoCreateColumnsFromModel to preserve your customization.

  • Annotations - InheritanceType.TABLE_PER_CLASS doesn't seem to work with GF

    Hi there,
    I'm using the toplink essentials jar file with a stand alone J2SE application. I'm using annotations for ORM with Toplink implementation
    What I want to achieve is to map the base class objects to one table, and sub class objects to a different table. Currently - both tables (and objects) have the exact same structure, but I use inheritence in order to identify where should the object be registered. Thus I'm trying to map an inhertiance using TABLE_PER_CLASS type.
    It doesn't seem to work:
    My classes look like this:
    Base class I want to map to REGION table:
    @Entity
    @Table(name="REGION")
    @Inheritance(strategy=InheritanceType.TABLE_PER_CLASS)
    public class Region implements BaseBusinessObj
    @Id
    @Column(name = "REGION_ID", insertable = false, updatable = true)
    @GeneratedValue(generator = "regionSeq")
    @SequenceGenerator(name = "regionSeq",
    sequenceName = "GSM_REGION_ID_SEQ", allocationSize = 1)
    private int m_regionId;
    @Column(name = "REGION_NAME")
    private String m_regionName;
    Subclass with exact same structure I want to map to GFR_REGION table which has the exact same database table structure as REGION:
    @Entity
    @Table(name="GFR_REGION")
    public class GfrRegion extends Region
    This doesn't work. The Toplink adds entities of the GfrRegion to the REGION table and does not recognize it should go to the GFR_REGION table.
    What am I doing wrong?
    Thanks,
    Michael

    Hi all,
    Any news about the support for TABLE_PER_CLASS in TopLink/EclipseLink ?
    The main question is what was the reason for making this an optional strategy for mapping in the specs ? Both OpenJPA and Hibernate have it and there are cases when this is usefull.
    From EclipseLink perspective, how difficult would be to add this ? I didn't have a chance yet to closely examine the codebase for EclipseLink, but some architecture diagrams with some design decisions explained would help to community to better understand the product and make improvements.
    Thank you,
    Mircea

  • Copy items to the iPhoto Library option doesn't seem to work

    Hi, I'm using 7.1.1 and if I:
    1. De-select the create "Copy items to the iPhoto Library" option in Preferences/Advanced
    2. Create a new library
    It doesn't seem to work. The images are still being copied into the library -- that is, if I show the package contents of the library, the data directory has the photos. Additionally, if I do something like open, modify in photoshop and save one of the imported files, it doesn't show up in iPhoto. Likewise if I modify the file in iPhoto and then look at the photo in the file system using Preview or Photoshop, the iPhoto changes don't appear.
    Is this a bug? Is it not supposed to work like this? I believe that if I say "don't copy the files into the library" it means that it uses my original photos in their original location and that changes I make in iPhoto modify and manipulate the original files.
    I've tried this on two different machines and get the same results. Anyone have any ideas?
    Thanks!

    markand:
    Welcome to the Apple Discussions. It's not a bug. You don't understand correctly how iPhoto works in the "referenced" library mode. The Data folder contains the thumbnail files that iPhoto creates and needs to operate. The Originals folder will contain alias files linked to the source files at their location. Any edits, by iPhoto or by Photoshop configured correctly will result in a modified file in the Modified folder of iPhoto. *You should not open, rename, move or edit any file in the library package from the Finder.*
    Using Photoshop to edit photos in iPHoto must be done by selecting PS as the editor to use in iPhoto's General Preferences section. Then follow the instructions below to edit photos correctly:
    Using Photoshop (or Photoshop Elements) as Your Editor of Choice in iPhoto.
    1 - select Photoshop as your editor of choice in iPhoto's General Preference Section's under the "Edit photo:" menu.
    2 - double click on the thumbnail in iPhoto to open it in Photoshop. When you're finished editing click on the Save button. If you immediately get the JPEG Options window make your selection (Baseline standard seems to be the most compatible jpeg format) and click on the OK button. Your done.
    3 - however, if you get the navigation window that indicates that PS wants to save it as a PS formatted file. You'll need to either select JPEG from the menu and save (top image) or click on the desktop in the Navigation window (bottom image) and save it to the desktop for importing as a new photo.
    This method will let iPhoto know that the photo has been editied and will update the thumbnail file to reflect the edit..
    If you want to use both iPhoto's editing mode and PS without having to go back and forth to the Preference pane, once you've selected PS as your editor of choice, reset the Preferences back to "Open in main window". That will let you either edit in iPhoto (double click on the thumbnail) or in PS (Control-click on the thumbnail and seledt "Edit in external editor" in the Contextual menu). This way you get the best of both worlds
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Wacom Tablet doesn't seem to work all of the time?

    I have a Wacom Intuos 3 tablet, not more than a year old. I recently installed it onto my Macbook Pro and it worked fine, but when I unplugged it and came back to work with it later, it doesn't seem to work. The mouse doesn't respond to where I click on the pad.
    So, I've reinstalled this a couple of times and was able to make it work perfectly, but today when I went back to work in photoshop, it doesn't seem to be responding again.
    Does anyone have any tips? I know that Leopard likes you to eject USB devices instead of just pulling them out of the slot, but I don't see anywhere to eject it.
    Does anyone know what's up?

    Downloaded a driver from website, tablet works now.

  • Safari on my iPhone 6 running 8.02 doesn't seem to work right. Some Java scripts don't show correctly and they do on other browsers I have downloaded. I tried almost everything and nothing seems to work to fix it. Please help.

    Some websites like the one of my college uses JavaScripts and they seem to load correctly to a certain point but then not really. For example in one it would say select an option from the left menu. And I do it hut nothing happens. But when I go to the same website in another browser on my phone. The JavaScript works completely and allows me to see whatever I was clickig on that menu. I have seen that there are other websites being affected too. I tried clearing my cookies and data. even restarted my phone. And doesn't seem to work. I don't know how change the configuration any more to make it work like normal. At first I thought it was my school's website but it never got fixed. And now I realized is my safari browser! I wanna keep using it since I am really familiar with It. If someone knows how to fix this please let me know!
    Thanks

    You can reset the SMC and see if that helps. If it's a unibody or Retina, follow the method for "a battery you should not remove yourself."
    http://support.apple.com/kb/ht3964

Maybe you are looking for

  • Videos from the PC to the TV - no signal

    I have a T500 with MS XP Professional and purchased a Laptop to HDTV - VGA Audio/Video Cable.  When I select the input I get no signal and have been told by PC folks more knowledgeable than I that I must upgrade my drivers.  There are so many drivers

  • Type for measurements

    For Science and Engineering a number is usually naked without its measurement unit. Can I somehow make a type for values like 59.333mn or 657.99ft? I could use "59.333mn" and "657.99ft" but that seems cumbersome. Does java have such a type or another

  • Content Protection in Flash player.

    Good day. Is it possible to protect the broadcasted content from unauthorized copying users. In the demo version of FMS 3.5 for interactive broadcasting stream audio and video can be copied by means of such programs as Comtasia. This may not like the

  • Reinstall OSX Partition?

    Can I reinstall OSX without effecting my Windows installation?

  • Missing amt.lib.dill

    my adobe photoshop cs6 for 64x wont open. it says missing amt.lib.dill file. how do i fix this without having to re-buy the program bc i lost the disk. i already tried troubleshooting for working in earlier versions but that didnt work....i have wind