User Profile

Collapse

Profile Sidebar

Collapse
Paks
Paks
Last Activity: Sep 12 '08, 08:51 AM
Joined: Dec 4 '06
Location: Stockholm, SWEDEN
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Paks
    replied to Hibernate @OneToMany - cascade delete problem
    in Java
    Apparently we just had to add one row to the annotation:
    Code:
    @Cascade(org.hibernate.annotations.CascadeType.DELETE_ORPHAN)
    So that it looked like this:
    Code:
    @OneToMany(cascade = CascadeType.ALL)
    @Cascade(org.hibernate.annotations.CascadeType.DELETE_ORPHAN)
    @JoinTable(name = "parents_children", joinColumns = @JoinColumn(name = "parent_id"), inverseJoinColumns = @JoinColumn(name = "child_id"))
    ...
    See more | Go to post

    Leave a comment:


  • Paks
    started a topic Hibernate @OneToMany - cascade delete problem
    in Java

    Hibernate @OneToMany - cascade delete problem

    Hi there,
    I'm developing a web project based game and have run into a problem and gotten confused by the annotations in the Hibernate framework.

    I'm trying to have both the relation and child deleted while updating the parent object with a removed child.
    And I've only managed to make the relationship table entry to be deleted and not the child itself.
    I could delete the child manually but that just seems like bad...
    See more | Go to post

  • Paks
    replied to Session detection JSP determing content?
    in Java
    Thanks for your help :)
    The filters had completely slipped my mind, will look in to it right away!

    -- Paks
    See more | Go to post

    Leave a comment:


  • Paks
    started a topic Session detection JSP determing content?
    in Java

    Session detection JSP determing content?

    Hi there,
    developing a web application and got a total mind block.

    I'm using the frameworks hibernate, struts and spring.
    And when you click on a link to a JSP-page, I want to redirect depending on the sessions value, which contains a User-object. Get a value from the object and depending on whether this value is null or not I want to redirect to different JSP-pages.

    Does anyone know how to do this? In...
    See more | Go to post

  • Paks
    replied to MMS Inbox?
    I'm sorry I missed your reply.

    After many failed attempts with a open source MMSC with only
    half their source code shared on their CVS and trial periods
    of commercial products without APIs and only GUI support.

    I decided to check out the possibily of sending mms to email and saw that it worked. Unfortunatly there where app. 6 fewer mobile models (in Sweden) that supported both MMS and email. But I talked...
    See more | Go to post

    Leave a comment:


  • Paks
    replied to accesskey issue
    Hi, there.
    I've never tried it with iframes, but it should be the same
    as with textboxes and buttons, shouldn't it?

    So it should be something simple as:
    <iframe accesskey="0">
    ...
    </iframe>

    To use different accesskeys in web browsers, I think these are the procedures :P
    But I could be incorrect, hehe. Don't own a Mac e.g. :P
    IE 5 or higher
    ...
    See more | Go to post

    Leave a comment:


  • Paks
    started a topic MMS Inbox?

    MMS Inbox?

    Hi there,
    I was wondering what's the best way to set up a "MMS inbox" on a server?
    Is a MMSC the solution or what? I'm just getting confused here, hehe.

    What I would like is to set up a MMS-adress for our video community site, where the mobile users can send their MMS:s with video-attachments.
    And from this inbox extract the video and save it in our mySQL database.

    Do anyone know how to...
    See more | Go to post

  • Configure WURFL on Resin application server

    Hi there,
    I am using WURFL to avoid the trouble of choosing between WML/XHTML.
    The problem is that the existing download only supports Apache Tomcat Server and I need it to work on Resin application server.

    To do this just unzipped it in webapps and fool around with the configurations :P

    Below is a sort of "installati on guide" for WURFL on Resin Server.

    Code:
    WURFL installation
    ...
    See more | Go to post

  • JBoss Portal 2.6.3 Customization Trouble - dashboardnav

    Hello,
    me and my team are developing a portal with iGoogle inspired design and Facebook inspired functionality (the customer's request) for non-commericial use and we're stuck on a design issue.

    We're using the portal framework JBoss Portal 2.6.3-GA and would like to add a extra menu too the dashboard navigation (the menu in the upper right corner).
    And it's possible to add new menu items, but we haven't figured out how...
    See more | Go to post

  • Paks
    replied to Checks and Balances in HTML form
    My tip would be for you to use javascript to solve the problem.

    Here's a layout... there's a lot of information on google though :p
    Code:
    function checkForm(form)
    {
    	var string = "";
    	string = string + validate_someField();
    	if (string.length != 0) {
    		alert(string);
    		return false;
    	}
    	return true;
    }
    
    function validate_someField()
    {
    ...
    See more | Go to post

    Leave a comment:


  • Paks
    replied to xhtml extension required for xhtml file?
    You only have to save it as a .html-file and not under a special file name.

    The biggest difference between HTML and XHTML is:
    1) That XHTML is more case-sensitive and only want small letters.
    I.E: <p> instead of <P>
    2) <br> has turned into <br />
    3) XHTML is very distinct about the order of "nestled"-tags,
    which means FILO (first-in-last-out)
    I.E: <div>...
    See more | Go to post

    Leave a comment:


  • Thanks Michelb, it worked :)
    See more | Go to post

    Leave a comment:


  • The MySQL command LEFT() counterpart in PostgreSQL?

    Hello,
    I have a quick little question about the MySQL-command LEFT(columnName ,int).
    My question is if there's a counterpart in PostgreSQL for this command and what it is?

    What I want to do is take the first specified amount of signs in a text-column and print them out.
    For example:

    Instead of printing out all information in a text-column...
    SELECT story FROM table01;
    Once upon a time...
    See more | Go to post
No activity results to display
Show More
Working...