|
Suppose I have an entity:
@Entity public class AnEntity implements Serializable{ @ElementCollection private List<String> strings = new Vector<String>(); // other stuff }
I am using EclipseLink(JPA 2.0).
The strings in this List may have the...
Started by J_Y_C on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Then you should use @ManyToMany , because it's a many-to-many .
string can belong to many AnEntities.
|
|
I have a table that contains file paths, like so:
|Files | |path nvarchar(500)|
I want to split it into two tables, one containing unique directories and one containing filenames:
|Files | |filename nvarchar(255)| |directoryId int | |Directories | |id...
Started by eliah on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Try this:
declare @filename varchar(500) set @filename = 'C:/Folder/file.jpg' select right(@filename, charindex('/',reverse(@filename))-1) select left(@filename, len(@filename) - charindex('/',reverse(@filename))+1)
This will be the whole conversion:
... .
|
|
I created a string table in my .rc file containing my English strings - now I need to add another string table for a different language.
If I try to do:
Add Resource... -> String Table -> New
I get the error: "there cannot be more than one instance...
Started by Martin on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
That takes you to ....
If it isn't the same language as the current table, Try changing the language on your current string table the String Table node, right-click "String Table" and select "Insert Copy".
|
Ask your Facebook Friends
|
I have a tableview which displays the result from the web service the result fron the web sevice is in form of string array, where each string in the array is pretty long. It is like "1|123|JP Morgan|111|2000.0|Pending", similarly there are strings which...
Started by shreedevi on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
To change the size, set the property custom cells, read the Table View Programming Guide ..
Options are to make it smaller or make a custom table cell.
|
|
Can I convert a dynamically created c# table to an html string ?
I mean like this;
Table t = new Table(); TableRow tr = new TableRow(); TableCell td = new TableCell(); td.Text ="Some text... Istanbul"; tr.Cells.Add(td); t.Rows.Add(tr); t.ToString(); Response...
Started by blgnklc on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
You should update your question to be a little htmlWriter = new HtmlTextWriter(stringWriter... .
It must become a string at some point for it to be rendered out to the browser - one way to do it is to take this and extract the table out of it.
|
|
SELECT * FROM disney; NAME lion king cinderella the little mermaid $string = "i love the movie lion king, it rocks!"
I want to get the NAME from disney where the NAME is inside the given string. It's kinda like:
'SELECT * FROM disney WHERE NAME LIKE "...
Started by Gal on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
'" LIKE CONCAT("%",NAME.
$string .
I used) :
'SELECT * FROM disney WHERE "'.
|
|
I have a table named "buildings" that contains a varchar(50) field named "use". The table already has several thousand records, however the "use" values are all null. I would like to update these this table with randomly chosen values from a list of strings...
Started by Ryan Taylor on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
It's not random, but this is a nice and easy way to do it, provided you have a realtively uniform distribution of IDs:
UPDATE Buildings SET Use = 'warehouse' WHERE ID % 6 = 0 UPDATE Buildings SET Use = 'office' WHERE ID % 6 = 1 UPDATE Buildings SET Use... .
|
|
I want a field in a table of SQL Server 2008 to contain a preset number of string values for user to be able then to select one value from a dropdown listbox in my WPF front-end app.
Is it possible only through assigning a numeric int type in a SQL Server...
Started by rem on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
KEY :
CREATE TABLE possible_strings (string_val NVARCHAR(100) PRIMARY KEY) INSERT INTO possibleMake a table containing your possible values and reference the field to that table with a FOREIGN') ALTER TABLE mytable....
|
|
I am accessing web services, which give me result in string array. Say if the length of string array is 3, The first string is "1|123|Bank Of America|111|recall" (| is a delimiter) The second String is "2|456|JP Morgan|22|recall" The Third String is "...
Started by shreedevi on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Of your string separated with "|" using either NSString's -componentsSeparatedByString and split it by the @"|" string: [eachComponent componentsSeparatedByString: @"|"] , and display.
|
|
Hi,
I've have a string with prodIDs like "3, 16, 12" is it possible to match these Ids with the product table in the db and display details like name, price in the gridview?
PS: im new to c# and asp.net!
thanks,
Started by pier on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Based on your of putting each cart item in the session... .
Then use kind of db you have and where that string of ids is coming from (how it's built).
Use some function to split your delimited string into a table:
Here is an example.
|