Is there any way to execute a custom script after JPA created tables?

Hi
I am looking for a way to execute some scripts right after JPA created the tables. I want the script to be executed once and not every time my application start.
I though maybe Toplink has some extensions for this.
Thanks.

In general the auto-generated DDL is more for rapid prototyping, than production. If you have got to the point of defining your own DDL extensions, you may be better off outputting the auto-generated DDL to a file, and using ant or some other tool to define the schema including your extensions.
You could do it using EclipseLink as well using a SessionCustomizer (which is an event class set in your persistence.xml). The SessionCustomizer is executed before the DDL is generated however, so you would need to remove the DDL properties from your persistence.xml and generate the DDL using an EclipseLink SchemaManager (SchemaManager.replaceDefaultTables(true, true)).
James : http://www.eclipselink.org

Similar Messages

  • Is there any way to execute process chain from the portal?

    Hello,
    Is there any way to execute process chain from the portal? I dont want to link process chain with any of report. I want to have a button in some of portal folders. User presses the button and it executes the process chain.
    I was thinking about to create a fake planning cube, aggregation level and planning function. I call FM within the Fox planning function that runs the process chain. But it should be done within the report.
    Any ideas?
    Thanks a lot in advance!

    Hi.
    I want to have a button in some of portal folders
    You mean that you want to use some link in EP ?
    Regards.

  • Is there any way to save a customized toolbar layout?

    Is there any way to save a customized toolbar layout?

    Printing the layout helps, I can pretty much do it from memory..
    Once you have '''freshly generated the layout''' you want
    # Open your profile folder by typing about:support int the location bar (or Help > Troubleshooting information...)
    # Click on Open containing folder
    # use File > Exit or "Firefox" button > Exit to get out of Firefox (Not the "X" in upper right corner as that just closes the Window)
    # in your profile f older select localstore.rdf and copy ("Ctrl+C") then paste it aback to make a copy, repeat to create at least one more copy, The original and "localstore - Copy.rdf " and "localstore - Copy (2).rdf" will all be the same, about 4KB to start with. (not 18 KB not 76 KB)
    # bring Firefox back up.
    ''Freshly generated ''means rename or delete the original localstore.rdf while Firefox is down, restart Firefox and customize your toolbars as you want them.
    If you have a problem with a corrupt localstore.rdf bring Firefox down and in your profile directory delete or rename the localstore.rd then rename a copy to localstore.rdf
    Reference: http://kb.mozillazine.org/Corrupt_localstore.rdf see references to backup copy, you should, of course, be taking periodic backups of all your personal data, and for Firefox that includes your profile.

  • Is there any way to use embedded commands in text to create pauses when using text to speech in iOS 5? You can do it in OS X by typing [[slnc 2000]] to get a two-second pause.

    Is there any way to use embedded commands in text to create pauses when using text to speech in iOS 5? You can do it in OS X by typing [[slnc 2000]] to get a two-second pause.

    Thanks for the reply Russ.
    Yes, I've considered adding titles and/or generators in the FCPX storyline, but this creates a need to render the entire timeline. As I'm juggling library locations and hard drive spaces I just didn't want to add a new render that will occupy a lot of space. It's also a bit of visual clultter for me, so my goal is to find the best workflow for adding this stuff on or after export.

  • Is there any way to write to a socket after shutting it down?

    Guys is there any way to write to a socket after using the shutdownOutput() method?
    I get this complain at runtime
    java.net.SocketException: Cannot send after socket shutdown: socket write error

    Your question embodies a contradiction in terms. Shutting down the socket means that you're telling the other end there is no more data. So you can't send more data. And even if you could, the other end wouldn't read it, because it would think it had already reached end of stream. Because that's what you told it.
    If you don't want HTTP keep-alive, turn it off via the appropriate HTTP header.
    You should be using HttpURLConnection for this, not a Socket. That takes care of your reading problem: it knows how to process the content-length header.

  • Is there any way to get your pictures back after updating to maverick?

    is there any way to get your pictures back after updating to maverick?

    Is Aperture not launching at all? Then update Aperture like Ernie recommended. You'll need version 3.5.1, or 3.4.5 with Mavericks. If you have any Aperture 3 version, you should be able to update for free.
    After updating Aperture, make sure you have a backup copy of your Aperture library, before opening it in the new version.  Click the Aperture library, to open Aperture on your library.
    Or, is the problem, that Aperture opened on an empty library? Then check the file system on the drive with your Aperture library. It may have the wrong formatting. Then move your Aperture library to a drive formatted MacOS Extended (Journaled). Click the

  • Is there any way to get your pictures back after updating your phone

    s there any way to get your pictures back after updating your phone

    Did you fail to import them to your comuter before updating?
    If for some reason you did fail to do this, then they are very liekly gone.
    You can try restoring from backup.

  • Is there any way that we can run script file Directly through RMAN.

    Hi Team,
    I have backup script as ,
    allocate channel t1 type disk;
    backup
    format 'C:\bkup'
    (database);
    release channel t1;
    I had used this script for backup operation on RMAN & its executing properly...as
    RMAN> run
    2> {
    3> allocate channel t1 type disk;
    4> backup
    5> format 'C:\bkup'
    6> (database);
    7> release channel t1;
    8> }     
    Now I want to put this srcipt file in one file i.e (backup.sh) ... Can I give this backup.sh file (stored in disk location)directly to the Run command. Is there any way ..
    Plz comment...

    You can use cmdfile parameter to specify the script which contains the actual code and also you can specify log parameter for the log file. Here is an example:
    rman target / cmdfile=backup.ora log=backup.log
    And here are all the command line parameters which you can use with RMAN:
    Argument Value Description
    target quoted-string connect-string for target database
    catalog quoted-string connect-string for recovery catalog
    nocatalog none if specified, then no recovery catalog
    cmdfile quoted-string name of input command file
    log quoted-string name of output message log file
    trace quoted-string name of output debugging message log file
    append none if specified, log is opened in append mode
    debug optional-args activate debugging
    msgno none show RMAN-nnnn prefix for all messages
    send quoted-string send a command to the media manager
    pipe string building block for pipe names
    timeout integer number of seconds to wait for pipe input
    checksyntax none check the command file for syntax errors
    Daljit Singh

  • Is there any way to retrieve a previous backup after the reset version has backed up?

    My phone recently freaked out and went into safe mode and when i went to back it up to the most recent back up, i accidentally set it up as a new iphone.. then it backed up to my computer which erased the most recent back up i wanted... Is there any way to get that back now? I lost over a year of pictures of my daughter and i'm pretty upset about it.

    I'm in the same situation as a lot of people. Whenever my iPhone 4 updates, it locks into sync mode and then I continuously lose my important data (contacts & photos etc) and recent backups replace more important backups, without asking for permission to do so.
    As this has happened before, I make regular backups. Yesterday it showed one of these recent backups, but this has been replaced with todays, which is a new installation.
    Is this the same with the new iPhones? Are Apple trying to encourage people to over to new iPhone, with more compatible software?
    I really need help with this, as it keeps happening and I spend a lot of valuable time trying to rectify it.

  • Is there any way to recover old text messages after update

    When i updated my new iPhone OS to the new system, i had to end up doing a restore. This wiped out all my info and while i have a backup on the computer. I can seem to find a way to recover old text messages via the iMessage platform. Is there any way to recover some of those old conversations? Some have sentimental value to them.

    I just need the last month of texts and I had not backed up for several months.

  • Is there ANY way to get access to sync after a system crash and losing the key?

    I know that I'm expected to re-set my sync key since I've lost it but isn't there any way to work around this? I had a system melt down shortly after installing sync and never backed up the file I created with the sync key. After re-installing everything I'm expected to lose all my old info? That's crazy.

    If you didn't create a back up, then it cannot be retrieved.

  • Is there any way of stopping ios7 from downloading after it starts? If not, is there a way to go back to the previous system?

    Is there any way of stopping ios7 from downloading once it has started? If not, is there any way to go back to the previous program instead of ios7?

    turn off wifi

  • Is there any way to refresh the zfs snapshot other than creating another on

    Hi,
    I want to use the zfs send / recv replication, after I create the snapshot and do send/ recv to the remote filesystem, is there any way to do send and recv from the same snapshot after making some changes to the original filesystem other than creating another snapshot every time before send / recv
    Thanking you
    Ushas Symon

    No, you'd have to take another snapshot and then send it, but you don't need to save all the snapshots after you are done. If you script it out to take snapshots fairly often during the day, the amount of data would be small. You can also send to a file and then backup that file to tape or whatever, you wouldn't have to save a million snapshots. You can also look into OpenSolaris' Time Slider function.

  • Is there any way to get my photos back after a restore in iTunes?

    Today I plugged my iPod Touch into my computer to put all of the latest photos of my son onto my PC & I must have accidentally hit the restore button.  The darn thing restored to the January settings on my iPod & I lost all of the last month's worth of photos of my son.  Is there any way to get them back?

    If you didn't create a back up, then it cannot be retrieved.

  • Is there any way to break into an ipod after it has been disabled

    i need help is there any way to break into an ipod touch after it has been disabled

    Maybe the CIA could get data from an disabled iPod.
    It is easy for anybody to erase the iPod and regain use of the iPod for their own use.  Just place in recovery mode and retore.

Maybe you are looking for

  • How to delete a file when it is open ?

    Hi all, I want to delete a file even it is open, and that should be deleted with out exiting the program itself. By using deleteOnExit() method of File class it is possible, but it is not valid for all types of files, and it works if we exit the prog

  • Mac Mail to Microsoft Mail

    I have a friend who says my emails are coming in text form instead of HDML is there some way I can control the format in emails. I know it could be her computer causing the problem but not sure. I have on other person who sends me email and they come

  • Dark transparent window overlayed all windows

    There is a Dark Transparent 'window' that has overlayed it self on the screen. It is in the top Right Corner and I can not make it disappear... Any ideas? Before I start tearing apart my system? cheers.

  • Integrate OC4J 10.0.x in Oracle Application Server 10g

    Ok, i have a Oracle Application Server 10g Enterprise Instance including Infrastructure on a Linux-Server. Its OC4J is a 9.0.4 OC4J following the J2EE 1.3 standard. So now Oracles offers a newer 10.0.x Developer Betarelease of OC4J wich will be in Pr

  • Vinagre triggers gtk bug on certain arches (eg x64)

    had a tough time persuading google to give me meaningful results, so I share it: when trying to connect via VNC to my girlfriend's macbook under leopard, I get this: $ vinagre The program 'vinagre' received an X Window System error. This probably ref